google-github-actions/Analyze Code Security

Scan and analyze code for security risks using Google Cloud.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
organization_idGoogle Cloud organization ID for the organization which includes the resources that you want to modify. For example, '1234'.yes
scan_file_refPath to a file, relative to the local workspace, for the IaC file to scan. For example: ./tf_plan.json or ./artifacts/tf_plan.jsonyes
iac_typeThe IaC template type. Currently only Terraform is supported.yesterraform
scan_timeoutThe maximum time before the scanning stops. The value must be between "1m" and `10m`.no3m
ignore_violationsWhether violations found in IaC file should be ignored when determining the build status. This input doesn't apply to violations that are related to generating SARIF reports and determining the `iac_scan_result`.nofalse
failure_criteriaThe failure criteria that determines the workflow build status. You can set a threshold for the number of critical, high, medium, and low severity issues and use an aggregator (either `and` or `or`) to evaluate the criteria. To determine whether a build has failed, the threshold for each severity is evaluated against the count of issues with that severity in the IaC scan results and then severity level evaluations are aggregated using `AND` or `OR` to arrive at `failure_criteria` value. You must include an aggregator in the string. The aggregator value is case-sensitive. For example, if you set the failure criteria to `HIGH:1,LOW:1,OPERATOR:OR`, the workflow fails if there is 1 or more HIGH severity findings or 1 or more LOW severity findings. If you set the failure criteria to `HIGH:1,LOW:1,OPERATOR:AND`, the workflow fails if there is 1 or more HIGH severity findings and 1 or more LOW severity findings. If the `failure_criteria` evaluates to `true`, the workflow is marked as `FAILED`. Otherwise, the workflow is marked as `SUCCESS`.noCritical:1, High:1, Medium:1, Low:1, Operator:OR
fail_silentlyIf set to true, the workflow will not fail in case of any internal error including invalid credentials and plugin dependency failure. Note: This GitHub Action will always fail in case of any input validation errors.nofalse
namedescription
iac_scan_resultThe result of the security scan. One of: - `passed`: No violations were found or the `failure_criteria` was not satisfied. - `failed`: The `failure_criteria` was satisfied. - `error`: The action ran into an execution error, generally due to a misconfiguration or invalid credentials.
iac_scan_result_sarif_pathPath for the SARIF report file. This file is only available when violations are found in the scan file.