File tree Expand file tree Collapse file tree 1 file changed +16
-19
lines changed
Expand file tree Collapse file tree 1 file changed +16
-19
lines changed Original file line number Diff line number Diff line change 11name : tfsec
2+
23on :
34 push :
4- branches :
5- - master
5+ branches : [ "main" ]
66 pull_request :
7+ schedule :
8+ - cron : ' 15 19 * * 6'
79
810jobs :
911 tfsec :
10- name : tfsec sarif report
12+ name : Run tfsec sarif report
1113 runs-on : ubuntu-latest
14+ permissions :
15+ actions : read
16+ contents : read
17+ security-events : write
1218
1319 steps :
1420 - name : Clone repo
15- uses : actions/checkout@master
21+ uses : actions/checkout@v3
1622
17- - name : tfsec
18- uses : aquasecurity/tfsec-sarif-action@v0.1.4
23+ - name : Run tfsec
24+ uses : aquasecurity/tfsec-sarif-action@21ded20e8ca120cd9d3d6ab04ef746477542a608
1925 with :
2026 sarif_file : tfsec.sarif
21- full_repo_scan : true
2227
23- - name : tfsec commenter for PR
24- uses : tfsec/tfsec-pr-commenter- action@v1.3.1
28+ - name : Upload SARIF file
29+ uses : github/codeql- action/upload-sarif@v3
2530 with :
26- GITHUB_TOKEN : ${{ github.token }}
27-
28- - name : Terraform security scan Advanced
29- 30- if : github.event_name == 'pull_request'
31- env :
32- GITHUB_TOKEN : ${{ github.token }}
33- tfsec_actions_comment : true
34- tfsec_output_format : sarif
35- continue-on-error : true
31+ # Path to SARIF file relative to the root of the repository
32+ sarif_file : tfsec.sarif
You can’t perform that action at this time.
0 commit comments