-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 914 Bytes
/
deepsecrets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: DeepSecrets
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP 8.3
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Install Composer dependencies
run: composer install
- name: Run PHPUnit tests
run: vendor/bin/phpunit
- name: Install deepsecrets
run: |
python -m pip install deepsecrets
- name: Scan for secrets using deepsecrets
run: deepsecrets --target-dir . --outfile $GITHUB_WORKSPACE/deepsecrets-results/sec_report-$(date +"%Y%m%d").json
- name: Upload deepsecrets scan results
if: always()
uses: actions/upload-artifact@v2
with:
name: deepsecrets-results
path: $GITHUB_WORKSPACE/deepsecrets-results