Skip to content

ci: pin GitHub-owned actions to latest release SHAs - #1885

Open
jgautheron wants to merge 2 commits into
masterfrom
ci/pin-github-actions-2026-11-21
Open

jgautheron wants to merge 2 commits into
masterfrom
ci/pin-github-actions-2026-11-21

Conversation

@jgautheron

@jgautheron jgautheron commented Nov 21, 2026 •

Copy link
Copy Markdown

Pins every GitHub-owned uses: in this repo's workflows to the latest stable release's full commit, with the version in the trailing comment.

  • 7 pins across 2 files; actions: checkout, configure-pages, deploy-pages, setup-node, upload-pages-artifact.
  • Targets resolved from git ls-remote --tags peeled commits; latest stable = newest by semver among published, non-draft, non-prerelease releases.
  • Majors included: every target is a Node 24 release. Runner evidence: this repo's jobs report a runner above the 2.327.1 floor node24 requires.
  • Holds: none.

Linear: https://linear.app/phantom-labs/issue/DEVEX-4005

Verification (pre-push, fail-closed)

verify-pins.py asserts, for every pin, that the written sha equals the commit git ls-remote resolves for the tag named in the comment.

7 pins, 0 mismatches, exit 0

Per-pin ls-remote evidence:

OK .github/workflows/ci.yml:15 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 == ls-remote actions/checkout@refs/tags/v7.0.1^{}
OK .github/workflows/ci.yml:18 actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 == ls-remote actions/setup-node@refs/tags/v7.1.0^{}
OK .github/workflows/pages.yml:26 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 == ls-remote actions/checkout@refs/tags/v7.0.1^{}
OK .github/workflows/pages.yml:28 actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 == ls-remote actions/setup-node@refs/tags/v7.1.0^{}
OK .github/workflows/pages.yml:33 actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 == ls-remote actions/configure-pages@refs/tags/v6.0.0^{}
OK .github/workflows/pages.yml:43 actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 == ls-remote actions/upload-pages-artifact@refs/tags/v5.0.0^{}
OK .github/workflows/pages.yml:57 actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 == ls-remote actions/deploy-pages@refs/tags/v5.0.1^{}

Provenance

Implementation: Pi, deepseek-v4.1-flash-1017
Pins written by script from the resolution cache; no sha typed. One signed commit.

Draft: opens for CI observation only; no merge, no review request.

Summary by CodeRabbit

  • Chores
    • Updated the automated checks and publishing workflows to use newer workflow components. The application’s Node.js version, build commands, and published content remain unchanged, so these updates do not change the experience of using the application.

Every pin below was written by /tmp/gha-drypass/write-pins.py from the resolution
cache built off `git ls-remote --tags` peeled tag commits; no sha was typed.

Verifier: 7 pins, 0 mismatches, exit 0.
Each pin asserts written sha == ls-remote tag commit == trailing comment version.

Implementation: Pi, deepseek-v4.1-flash-1017
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI and Pages workflows update pinned action revisions. The Pages workflow adds actions: read to its token permissions. Node versions and build settings remain unchanged.

Changes: Workflow action updates

Layer / File(s) Summary
Update workflow action pins
.github/workflows/ci.yml, .github/workflows/pages.yml
Both workflows update pinned action revisions. The Pages workflow also adds actions: read to its token permissions. Node versions and build settings remain unchanged.

Suggested reviewers: joel-phantom

Change: Other

Merge Risk: Minimal · up to cb360

This updates pinned GitHub Actions versions in the CI and Pages workflows and grants the read permission the new Pages deploy action needs. No concrete issue was found, and the change is easily reverted. CI results on the PR should confirm that the workflows still run.

Architecture risk: Low · up to cb360

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/ci.yml: The workflow updates the pinned revisions of the checkout and setup-node actions; the Node.js 16 step configuration remains unchanged.
  • observed — Modified behavior in .github/workflows/pages.yml: Adds actions: read to the workflow token permissions.
  • observed — Modified behavior in .github/workflows/pages.yml: Updates the pinned revisions of the checkout, Node setup, and Pages configuration actions; their steps and Node settings remain unchanged.
  • observed — Modified behavior in .github/workflows/pages.yml: Updates the pinned revision of the Pages artifact upload action.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: pin GitHub-owned actions to latest release SHAs" matches the main change. The PR pins GitHub-owned workflow actions in ci.yml and pages.yml to full commit SHAs with release version comm…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: pin GitHub-owned actions to latest release SHAs" matches the main change. The PR pins GitHub-owned workflow actions in ci.yml and pages.yml to full commit SHAs with release version comments. The title is specific and uses the conventional commit prefix. It does not mention the added actions: read permission, but that is a secondary detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2fec597a-c473-48c4-8e33-a5f3dd554242
Commits

Reviewing files that changed from the base of the PR and between d8fe56a and cb360c1.

Files selected for processing: 1

  • .github/workflows/pages.yml

Included review availability: This review used your included allowance. 8 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

@socket-security

socket-security Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

@socket-security

socket-security Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
Potential code anomaly (AI signal): github actions/configure-pages is 62.0% likely to have a medium risk anomaly

Notes: The workflow is a standard release automation that updates a major tag based on an external input and emits a Slack notification. While not inherently malicious, the pattern introduces supply-chain risk through reliance on an external action (publish-action@v0.3.0) and the Slack webhook. The code lacks explicit input validation or safety hooks (e.g., dry-run, permission checks), which could allow mis-tagging or unintended releases if inputs are tampered with. Overall risk is moderate due to write permissions and external dependencies, but the intent appears to be legitimate release tagging rather than malicious activity.

Confidence: 0.62

Severity: 0.58

From: .github/workflows/pages.yml → github/actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d

ℹ Read more on: This package | This alert | What is an AI-detected potential code anomaly?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore github/actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

@jgautheron
jgautheron marked this pull request as ready for review November 23, 2026 10:26
@jgautheron
jgautheron marked this pull request as draft November 23, 2026 19:09
@jgautheron
jgautheron marked this pull request as ready for review November 26, 2026 20:30
@jgautheron jgautheron closed this Nov 28, 2026
@jgautheron
jgautheron deleted the ci/pin-github-actions-2026-11-21 branch November 28, 2026 16:00
@jgautheron
jgautheron restored the ci/pin-github-actions-2026-11-21 branch November 28, 2026 16:02
@jgautheron jgautheron reopened this Nov 28, 2026

This branch has not been deployed

No deployments
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