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

39 lines
958 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:
2022-11-04 20:45:41 +01:00
branches: [ $default-branch ]
2021-04-14 18:37:01 +01:00
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
uses: actions/checkout@v4
2021-04-14 18:37:01 +01:00
- name: Run tfsec
2024-03-06 16:46:46 -05:00
uses: aquasecurity/tfsec-sarif-action@21ded20e8ca120cd9d3d6ab04ef746477542a608
2021-04-14 18:37:01 +01:00
with:
2022-11-04 20:45:41 +01:00
sarif_file: tfsec.sarif
2021-04-14 18:37:01 +01:00
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
2021-04-14 18:37:01 +01:00
with:
# Path to SARIF file relative to the root of the repository
2022-11-04 20:45:41 +01:00
sarif_file: tfsec.sarif