MLPAB-2748 - Check egress via network firewall #2681
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Analysis] TFSec PR feedback" | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "**.tf" | |
permissions: | |
actions: read | |
checks: read | |
contents: none | |
deployments: none | |
issues: none | |
packages: none | |
pull-requests: write | |
repository-projects: none | |
security-events: none | |
statuses: none | |
jobs: | |
tfsec: | |
name: TFSec Static analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: tfsec with pr comments | |
uses: tfsec/[email protected] | |
with: | |
# setting working_directory to empty string will run tfsec on all .tf files in the repo | |
working_directory: '' | |
github_token: ${{secrets.GITHUB_TOKEN}} | |
soft_fail_commenter: true | |
tfsec_version: v1.28.1 | |
tfsec_args: --concise-output --force-all-dirs |