Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckNoPlainTextActionEnvironmentSecrets = rules.Register( scan.Rule{ AVDID: "AVD-GIT-0002", Provider: providers.GitHubProvider, Service: "actions", ShortCode: "no-plain-text-action-secrets", Summary: "Ensure plaintext value is not used for GitHub Action Environment Secret.", Impact: "Unencrypted sensitive plaintext value can be easily accessible in code.", Resolution: "Do not store plaintext values in your code but rather populate the encrypted_value using fields from a resource, data source or variable.", Explanation: `For the purposes of security, the contents of the plaintext_value field have been marked as sensitive to Terraform, but this does not hide it from state files. State should be treated as sensitive always.`, Links: []string{ "https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_environment_secret", "https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions", }, Terraform: &scan.EngineMetadata{ GoodExamples: terraformNoPlainTextActionSecretsGoodExamples, BadExamples: terraformNoPlainTextActionSecretsBadExamples, Links: terraformNoPlainTextActionSecretsLinks, RemediationMarkdown: terraformNoPlainTextActionSecretsRemediationMarkdown, }, Severity: severity.High, }, func(s *state.State) (results scan.Results) { for _, environmentSecret := range s.GitHub.EnvironmentSecrets { if environmentSecret.IsUnmanaged() { continue } if environmentSecret.PlainTextValue.IsNotEmpty() { results.Add("Secret has plain text value", environmentSecret.PlainTextValue) } else { results.AddPassed(&environmentSecret) } } return results }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.