Skip to content

Commit 71236ca

Browse files
authored
add semgrep
1 parent 1bd5297 commit 71236ca

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/scan.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,20 @@ env:
1313

1414
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1515

16+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_TOKEN }}
17+
1618
jobs:
19+
20+
semgrep:
21+
runs-on: ubuntu-latest
22+
container:
23+
image: semgrep/semgrep
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- run: |
28+
semgrep ci --code --secrets --supply-chain
29+
1730
spectral:
1831
runs-on: ubuntu-latest
1932
steps:
@@ -23,13 +36,25 @@ jobs:
2336
with:
2437
spectral-dsn: ${{ env.SPECTRAL_DSN }}
2538
spectral-args: scan --fail-on-error --engines secrets,iac,oss --asset-mapping github.${{ github.repository_owner }}
26-
audit:
39+
40+
audit-code:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: jfrog/setup-jfrog-cli@v4
45+
- run: |
46+
jf audit --iac --secrets --sast --format json | tee code
47+
- uses: Teebra/JSON-to-HTML-table@v2.0.0
48+
with:
49+
json-file: path/to/your/jsonfile.json
50+
51+
audit-dependency:
2752
runs-on: ubuntu-latest
2853
steps:
2954
- uses: actions/checkout@v4
3055
- uses: jfrog/setup-jfrog-cli@v4
3156
- run: |
32-
jf audit --sca --iac --secrets --sast
57+
jf audit --sca
3358
3459
snyk-iac:
3560
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)