Skip to content

Commit ad6eedd

Browse files
authored
Create tfsec.yml
1 parent b4fb41e commit ad6eedd

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: '18 15 * * 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@v3
28+
29+
- name: Run tfsec
30+
uses: aquasecurity/tfsec-sarif-action@9a83b5c3524f825c020e356335855741fd02745f
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)