Skip to content

Commit ca07567

Browse files
authored
chore: Create tfsec.yml
1 parent 1810286 commit ca07567

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/tfsec.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: tfsec
7+
8+
on:
9+
push:
10+
branches: [ "main" ]
11+
pull_request:
12+
branches: [ "main" ]
13+
schedule:
14+
- cron: '20 7 * * 3'
15+
16+
jobs:
17+
tfsec:
18+
name: Run tfsec sarif report
19+
runs-on: ubuntu-latest
20+
permissions:
21+
actions: read
22+
contents: read
23+
security-events: write
24+
25+
steps:
26+
- name: Clone repo
27+
uses: actions/checkout@v4
28+
29+
- name: Run tfsec
30+
uses: aquasecurity/tfsec-sarif-action@21ded20e8ca120cd9d3d6ab04ef746477542a608
31+
with:
32+
sarif_file: tfsec.sarif
33+
34+
- name: Upload SARIF file
35+
uses: github/codeql-action/upload-sarif@v2
36+
with:
37+
# Path to SARIF file relative to the root of the repository
38+
sarif_file: tfsec.sarif

0 commit comments

Comments
 (0)