Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more test workflow #12

Merged
merged 1 commit into from
Aug 10, 2024
Merged

more test workflow #12

merged 1 commit into from
Aug 10, 2024

Conversation

jarrod-lowe
Copy link
Owner

No description provided.

Copy link

Terraform plan in terraform/environment/github
With backend config: bucket=terraform-state-021891603679 key=main/terraform.tfstate region=ap-southeast-2

With variables

aws_account  = (sensitive value)
aws_region   = (sensitive value)
environment  = "main"
state_bucket = "terraform-state-021891603679"
Plan: 1 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create

Terraform will perform the following actions:

  # null_resource.test will be created
+   resource "null_resource" "test" {
+       id = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.

📝 Plan generated in Environment Main - Plan #18

@@ -27,7 +27,7 @@ jobs:
role-session-name: GitHubTest
aws-region: ${{ vars.AWS_REGION }}
- name: terraform plan
uses: dflook/terraform-apply@4aa6179df0f08cabedbf3b340b419adf5c328546
uses: dflook/terraform-apply@v1.44.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Codacy found a medium Security issue: An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.

The issue identified by the Semgrep linter is that the GitHub Action dflook/[email protected] is not pinned to a full-length commit SHA. Pinning an action to a full-length commit SHA ensures that the action is immutable and cannot be altered by the action's authors, which can enhance security by preventing unexpected changes or malicious code from being introduced.

To fix this issue, you should replace the version v1.44.0 with the specific full-length commit SHA that corresponds to this version. Here’s the code suggestion to fix the issue:

Suggested change
uses: dflook/terraform-apply@v1.44.0
uses: dflook/terraform-apply@c4f3a3e5a4e9c8b6c5e6d9d5e8c9f4b2f3e8d9f6

(Note: The commit SHA c4f3a3e5a4e9c8b6c5e6d9d5e8c9f4b2f3e8d9f6 is an example. You should replace it with the actual commit SHA for the version v1.44.0 of the dflook/terraform-apply action.)


This comment was generated by an experimental AI tool.

@jarrod-lowe jarrod-lowe merged commit 0d6dbf9 into main Aug 10, 2024
1 of 2 checks passed
@jarrod-lowe jarrod-lowe deleted the work branch August 10, 2024 02:56
jarrod-lowe added a commit that referenced this pull request Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant