Skip to content

Commit ea254e7

Browse files
committed
update tfsec action
1 parent 1b84569 commit ea254e7

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/tfsec.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,25 @@ on:
66
pull_request:
77
jobs:
88
tfsec:
9-
name: tfsec
9+
name: tfsec sarif report
1010
runs-on: ubuntu-latest
11-
11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
1215
steps:
1316
- name: Clone repo
14-
uses: actions/checkout@master
17+
uses: actions/checkout@v2
18+
with:
19+
persist-credentials: false
20+
1521
- name: tfsec
16-
uses: aquasecurity/tfsec-action@v1.0.0
22+
uses: aquasecurity/tfsec-sarif-action@v0.1.0
23+
with:
24+
sarif_file: tfsec.sarif
25+
26+
- name: Upload SARIF file
27+
uses: github/codeql-action/upload-sarif@v1
1728
with:
18-
soft_fail: true
19-
additional_args: '--gif --sort-severity --run-statistics --allow-checks-to-panic'
29+
# Path to SARIF file relative to the root of the repository
30+
sarif_file: tfsec.sarif

0 commit comments

Comments
 (0)