Skip to content

fix: update action versions in workflows for consistency#77

Open
kenichiro-kimura wants to merge 5 commits into
mainfrom
update-actions-version
Open

fix: update action versions in workflows for consistency#77
kenichiro-kimura wants to merge 5 commits into
mainfrom
update-actions-version

Conversation

@kenichiro-kimura

Copy link
Copy Markdown
Owner

This pull request updates several GitHub Actions in workflow files to use specific commit SHAs instead of version tags. This change improves security and reliability by ensuring that the workflows always use the exact same version of each action, preventing unexpected changes due to upstream updates.

Workflow action pinning for improved security and reproducibility:

  • Updated all actions/checkout steps to use the specific commit SHA de0fac2e4500dabe0009e67214ff5f5447ce83dd instead of the generic @v4 tag in .github/workflows/build-and-release.yml, .github/workflows/codeql-analysis.yml, and .github/workflows/lint-and-test.yml. [1] [2] [3]
  • Updated actions/setup-go to use commit 4a3601121dd01d1626a1e23e37211e3254c1c06c instead of @v4 in .github/workflows/build-and-release.yml.
  • Updated actions/setup-node to use commit 48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e instead of @v4 in .github/workflows/build-and-release.yml and .github/workflows/lint-and-test.yml. [1] [2]
  • Updated softprops/action-gh-release to use commit b4309332981a82ec1c5618f44dd2e27cc8bfbfda instead of @v2 in .github/workflows/build-and-release.yml.
  • Updated all github/codeql-action steps (init, autobuild, analyze) to use commit 458d36d7d4f47d0dd16ca424c1d3cda0060f1360 instead of @v3 in .github/workflows/codeql-analysis.yml. [1] [2] [3]

Copilot AI review requested due to automatic review settings May 22, 2026 07:44

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

This PR aims to harden GitHub Actions workflows by pinning commonly used actions to specific commit SHAs for reproducible and more secure CI runs.

Changes:

  • Pinned actions/checkout and actions/setup-node to commit SHAs in the lint/test workflow.
  • Pinned actions/checkout and all github/codeql-action/* steps to commit SHAs in the CodeQL workflow.
  • Pinned actions/checkout, actions/setup-go, actions/setup-node, and softprops/action-gh-release to commit SHAs in the build/release workflow.

Reviewed changes

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

File Description
.github/workflows/lint-and-test.yml Pins checkout and Node setup actions to SHAs.
.github/workflows/codeql-analysis.yml Pins checkout and CodeQL actions to SHAs (but currently has a YAML indentation issue in steps).
.github/workflows/build-and-release.yml Pins actions to SHAs (but currently removes checkout of the main repository, likely breaking the workflow).

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

Comment thread .github/workflows/build-and-release.yml
Comment thread .github/workflows/codeql-analysis.yml Outdated
- build-and-release.yml: Add checkout step for the main repository before
  checking out libsoratun, so that npm ci and other steps have access to
  the repo contents in the workspace root
- codeql-analysis.yml: Fix mis-indented steps (align step items correctly
  under steps: key)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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

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

Comment thread .github/workflows/build-and-release.yml Outdated
Comment thread .github/workflows/codeql-analysis.yml Outdated
Comment thread .github/workflows/build-and-release.yml Outdated
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.

3 participants