-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from aquasecurity/owenr-add-optional-repo-scan
feat: tidy up the args and add full repo scan option
- Loading branch information
Showing
4 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.15.2 | ||
|
||
RUN apk --no-cache --update add bash | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
name: 'Run tfsec with sarif upload' | ||
description: 'Run tfsec against terraform code base and upload the sarif output to the github repo' | ||
author: 'Owen Rumney' | ||
name: "Run tfsec with sarif upload" | ||
description: "Run tfsec against terraform code base and upload the sarif output to the github repo" | ||
author: "Owen Rumney" | ||
|
||
inputs: | ||
working_directory: | ||
description: | | ||
Directory to run the action on, from the repo root. | ||
Default is . ( root of the repository) | ||
default: '.' | ||
default: "." | ||
required: false | ||
sarif_file: | ||
description: The path to write the sarif report, defaults to tfsec.sarif | ||
default: tfsec.sarif | ||
required: false | ||
tfvars_file: | ||
description: The tfvars file to use for the scan | ||
required: false | ||
tfsec_version: | ||
description: The version of tfsec to use for the scan, defaults to latest | ||
default: latest | ||
required: false | ||
config_file: | ||
description: The path to the config file. (eg. ./tfsec.yml) | ||
required: false | ||
tfsec_args: | ||
description: | | ||
description: | | ||
Space seperated args specified here will be added during tfsec execution. | ||
(eg. --force-all-dirs --verbose) | ||
(eg. --verbose) | ||
required: false | ||
full_repo_scan: | ||
description: Scan the entire repository for Terraform issues | ||
required: false | ||
|
||
outputs: | ||
tfsec-return-code: | ||
description: 'tfsec command return code' | ||
description: "tfsec command return code" | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
using: "docker" | ||
image: "Dockerfile" | ||
branding: | ||
icon: 'search' | ||
color: 'gray-dark' | ||
icon: "search" | ||
color: "gray-dark" |
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