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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/environment-main-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
role-session-name: GitHubTest
aws-region: ${{ vars.AWS_REGION }}
- name: terraform plan
uses: dflook/terraform-apply@4aa6179df0f08cabedbf3b340b419adf5c328546
uses: dflook/terraform-apply@v1.44.0

Check warning on line 30 in .github/workflows/environment-main-deploy.yaml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/environment-main-deploy.yaml#L30

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.

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.

with:
path: terraform/environment/github
variables: |
Expand Down