Files
starter-workflows/code-scanning/tfsec.yml
T

39 lines
971 B
YAML
Raw Normal View History

2021-04-14 18:37:01 +01:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: tfsec
on:
push:
branches: [ $default-branch, $protected-branches ]
pull_request:
branches: [ $default-branch ]
schedule:
- cron: $cron-weekly
jobs:
tfsec:
name: Run tfsec sarif report
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
2021-04-14 18:37:01 +01:00
steps:
- name: Clone repo
2022-03-28 13:10:48 -04:00
uses: actions/checkout@v3
2021-04-14 18:37:01 +01:00
- name: Run tfsec
2022-06-22 07:40:07 -04:00
uses: aquasecurity/tfsec-sarif-action@9a83b5c3524f825c020e356335855741fd02745f
2021-04-14 18:37:01 +01:00
with:
sarif_file: tfsec.sarif
- name: Upload SARIF file
2022-03-31 08:24:35 -04:00
uses: github/codeql-action/upload-sarif@v2
2021-04-14 18:37:01 +01:00
with:
# Path to SARIF file relative to the root of the repository
2021-04-14 18:45:51 +01:00
sarif_file: tfsec.sarif