mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
a1c84cb080
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
41 lines
1010 B
YAML
41 lines
1010 B
YAML
name: Terraform security scanner
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "release/**"
|
|
paths:
|
|
- "**.tf"
|
|
- ".github/workflows/test-tfsec.yml"
|
|
pull_request:
|
|
paths:
|
|
- "**.tf"
|
|
- ".github/workflows/test-tfsec.yml"
|
|
|
|
jobs:
|
|
tfsec:
|
|
name: tfsec
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
with:
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
|
|
|
- name: tfsec
|
|
uses: aquasecurity/tfsec-pr-commenter-action@5b483d46fb4fd0cbe2259cf68354a3fb23aa70fe
|
|
with:
|
|
soft_fail_commenter: true
|
|
tfsec_formats: default,text
|
|
tfsec_args: --force-all-dirs
|
|
github_token: ${{ github.token }}
|
|
|
|
- name: tfsec summary
|
|
shell: bash
|
|
run: tail -n 27 results.text >> "$GITHUB_STEP_SUMMARY"
|