b80a1555aa
Co-authored-by: John Bohannon <imjohnbo@github.com>
36 lines
895 B
YAML
36 lines
895 B
YAML
# 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
|
|
|
|
steps:
|
|
- name: Clone repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run tfsec
|
|
uses: tfsec/tfsec-sarif-action@v0.0.4
|
|
with:
|
|
sarif_file: tfsec.sarif
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload SARIF file
|
|
uses: github/codeql-action/upload-sarif@v1
|
|
with:
|
|
# Path to SARIF file relative to the root of the repository
|
|
sarif_file: tfsec.sarif
|