Add tfsec starter action

This commit is contained in:
Owen Rumney
2021-04-14 18:37:01 +01:00
parent 1a9e61817a
commit a2e5f8e548
3 changed files with 43 additions and 0 deletions
@@ -0,0 +1,7 @@
{
"name": "tfsec",
"creator": "tfsec",
"description": "Static analysis for Terraform.",
"iconName": "tfsec",
"categories": ["Code Scanning"]
}
+35
View File
@@ -0,0 +1,35 @@
# 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@master
- 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
+1
View File
@@ -0,0 +1 @@
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="24.000000pt" height="24.000000pt" viewBox="0 0 24.000000 24.000000" preserveAspectRatio="xMidYMid meet"><g transform="translate(0.000000,24.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M48 223 c-27 -9 -48 -22 -48 -29 0 -11 8 -10 41 1 55 20 69 19 69 -5 0 -11 5 -20 10 -20 6 0 10 9 10 20 0 24 18 25 67 5 43 -18 43 -18 43 -2 0 15 -88 47 -124 46 -11 0 -42 -7 -68 -16z"/> <path d="M38 168 c-33 -12 -38 -33 -5 -24 12 3 28 6 35 6 6 0 12 7 12 15 0 17 -4 17 -42 3z"/><path d="M160 141 c0 -22 5 -41 11 -43 16 -5 -30 -58 -51 -58 -24 0 -65 51 -49 61 6 3 10 11 8 17 -6 14 -49 -4 -49 -21 0 -20 70 -87 91 -87 15 0 89 71 89 87 0 3 -7 15 -17 25 -15 17 -15 18 10 18 37 0 34 16 -4 29 -18 6 -34 11 -35 11 -2 0 -4 -18 -4 -39z"/> <path d="M110 120 c0 -22 4 -40 9 -40 4 0 8 18 8 40 0 22 -4 40 -8 40 -5 0 -9 -18 -9 -40z"/></g></svg>

After

Width:  |  Height:  |  Size: 897 B