mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
f60120bbbc
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
40 lines
859 B
YAML
40 lines
859 B
YAML
name: Terraform security scanner
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "release/**"
|
|
paths:
|
|
- "**.tf"
|
|
pull_request:
|
|
paths:
|
|
- "**.tf"
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
tfsec:
|
|
name: tfsec
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@1f9a0c22da41e6ebfa534300ef656657ea2c6707
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
|
|
- name: tfsec
|
|
uses: aquasecurity/tfsec-pr-commenter-action@f2c4d295e314be2de23d24231e19db528126aa6a
|
|
with:
|
|
soft_fail_commenter: true
|
|
tfsec_formats: default,text
|
|
tfsec_args: --force-all-dirs
|
|
github_token: ${{ github.token }}
|
|
|
|
- name: tfsec summary
|
|
shell: bash
|
|
run: cat results.text | tail -n 27 >> $GITHUB_STEP_SUMMARY
|