Adding tfsec for all *.tf pushes (#4777)
* Create tfsec.yml Draft tfsec workflow for #4762 * Update tfsec.yml * Update tfsec.yml Fixed identation
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: tfsec
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**.tf'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.tf'
|
||||
workflow_dispatch: # Manual dispatch
|
||||
jobs:
|
||||
tfsec:
|
||||
name: tfsec sarif report
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089
|
||||
|
||||
- name: tfsec
|
||||
uses: tfsec/tfsec-sarif-action@7ae00b384bff7f14cfa52cc3c73a5e6807a41398
|
||||
with:
|
||||
sarif_file: tfsec.sarif
|
||||
|
||||
- name: Upload SARIF file
|
||||
uses: github/codeql-action/upload-sarif@883476649888a9e8e219d5b2e6b789dc024f690c # v1
|
||||
with:
|
||||
# Path to SARIF file relative to the root of the repository
|
||||
sarif_file: tfsec.sarif
|
||||
Reference in New Issue
Block a user