Skip to content

Commit 8f74bb1

Browse files
committed
tfsec
1 parent 89d091d commit 8f74bb1

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

.github/workflows/tfsec.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
name: tfsec
2+
23
on:
34
push:
4-
branches:
5-
- master
5+
branches: [ "main" ]
66
pull_request:
7+
schedule:
8+
- cron: '15 19 * * 6'
79

810
jobs:
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-
uses: triat/[email protected]
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

0 commit comments

Comments
 (0)