Skip to content

fix #156 - bug: Unpinned tag for a non-immutable Action in workflow#219

Open
fantonangeli wants to merge 1 commit into
serverlessworkflow:mainfrom
fantonangeli:issue-156-bug-Unpinned-tag-for-a-non-immutable-Action-in-workflow
Open

fix #156 - bug: Unpinned tag for a non-immutable Action in workflow#219
fantonangeli wants to merge 1 commit into
serverlessworkflow:mainfrom
fantonangeli:issue-156-bug-Unpinned-tag-for-a-non-immutable-Action-in-workflow

Conversation

@fantonangeli

Copy link
Copy Markdown
Member

Closes #156

Describe the Bug

Note: I have this security alert on my fork but I cannot see it in this fork, probably due to a lack of permissions

Unpinned tag for a non-immutable Action in workflow

Severity: warning
State: fixed
Tool: CodeQL

Description

Overview

Using a tag for a 3rd party Action that is not pinned to a commit can lead to executing an untrusted Action through a supply chain attack.

Recommendation

Pinning an action to a full length commit SHA is currently the only way to use a non-immutable action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a
backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a
repository fork.

Signed-off-by: fantonangeli <fabrizio.antonangeli@gmail.com>
Copilot AI review requested due to automatic review settings July 3, 2026 16:21
@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for swf-editor canceled.

Name Link
🔨 Latest commit 66ecaaf
🔍 Latest deploy log https://app.netlify.com/projects/swf-editor/deploys/6a47e17b1ca2950008607514

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Pins GitHub Actions used by CI workflows to immutable commit SHAs to address the CodeQL warning about using non-immutable action tags (issue #156), reducing supply-chain risk in the repository’s CI pipelines.

Changes:

  • Pin actions/checkout to a full commit SHA in CI workflows.
  • Pin github/codeql-action steps (init, analyze) to a full commit SHA.
  • Pin additional actions in the license header workflow (actions/setup-java, actions/cache) to full commit SHAs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/ci_codeql.yml Pins checkout and CodeQL actions to immutable SHAs for CodeQL workflow security.
.github/workflows/ci_check_license_headers.yaml Pins checkout/setup-java/cache actions to immutable SHAs for the license-header CI job.
.github/workflows/ci_build.yaml Pins checkout and upload-artifact actions to immutable SHAs for the main build/test workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fantonangeli fantonangeli added the github_actions Pull requests that update GitHub Actions code label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Unpinned tag for a non-immutable Action in workflow

3 participants