Skip to content

Pin workflow actions to commit SHAs - #269

Merged
alii merged 1 commit into
mainfrom
farm/d6770536/pin-workflow-actions
Jul 2, 2026
Merged

alii merged 1 commit into
mainfrom
farm/d6770536/pin-workflow-actions

Conversation

@robobun

@robobun robobun commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Every Actions run in this repo currently dies in Prepare all required actions:

The action actions/github-script@v7 is not allowed in oven-sh/WebKit because all actions must be pinned to a full-length commit SHA.

The last Preview Build that got past that point started 2026-07-02T01:39Z; everything from 17:17Z onward fails the same way, including on PRs that touch nothing but C++. build-reusable.yml has the same unpinned uses:, so the autobuild-<sha> release on merge to main is blocked too, which blocks bumping WEBKIT_VERSION in bun.

This pins each action to the commit its current tag points at, so behavior is unchanged and only the form of the reference moves:

action pinned sha tag
actions/checkout 34e114876b0b11c390a56381ad16ebd13914f8d5 v4.3.1
actions/download-artifact d3f86a106a0bac45b974a628896c90dbdf5c8093 v4.3.0
actions/upload-artifact ea165f8d65b6e75b540449e92b4886f43607fa02 v4.6.2
actions/github-script f28e40c7f34bde8b3046d885e986cb6290c5673b v7.1.0
docker/setup-buildx-action 885d1462b80bc1c1c7f0b00334ad271f09369c55 v2.10.0
softprops/action-gh-release de2c0eb89ae2a093876385947365aca7b0e5f844 v0.1.15 (what v1 points at today)

No version bumps, no other changes. The version stays in a trailing comment on each line. If this PR's own Preview Build goes green, the policy is satisfied.

Every workflow run now fails before it starts:

    The action actions/github-script@v7 is not allowed in oven-sh/WebKit
    because all actions must be pinned to a full-length commit SHA.

Pin each action to the commit its current tag points at, so nothing changes
except the form of the reference. The version is kept in a trailing comment.
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@robobun, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 27 seconds

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: ebf24d7d-0ab7-4118-9755-3ac0ea87ed25

📥 Commits

Reviewing files that changed from the base of the PR and between c9ad581 and d99bb08.

📒 Files selected for processing (2)
  • .github/workflows/build-preview.yml
  • .github/workflows/build-reusable.yml

Comment @coderabbitai help to get the list of available commands.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM — mechanical tag→SHA pin to satisfy the new org policy, no behavior change.

Extended reasoning...

Overview

This PR touches only .github/workflows/build-preview.yml and .github/workflows/build-reusable.yml, replacing every uses: <action>@vN reference with uses: <action>@<full-sha> # vN.M.P. Six actions are affected (checkout, upload-artifact, download-artifact, github-script, docker/setup-buildx-action, softprops/action-gh-release). No step logic, inputs, permissions, or job structure changed — the diff is a pure re-spelling of the action reference on each uses: line. The third workflow file (build.yml) only references the local reusable workflow and needed no change.

Security risks

None introduced; if anything this is a security hardening. Pinning to immutable commit SHAs removes the risk of a mutable tag being repointed upstream. The SHAs are documented in the PR description as the commits the current tags resolve to, and the Preview Build on this PR self-verifies that they resolve and run.

Level of scrutiny

Low. This is a mechanical CI configuration change forced by an org-level Actions policy ("all actions must be pinned to a full-length commit SHA") that is currently blocking every workflow run in the repo. There are no logic or version changes to reason about, and correctness is directly observable from CI on the PR itself.

Other factors

No bugs were found by the automated review, there are no outstanding reviewer comments, and I have not reviewed this PR before. The change unblocks the autobuild release pipeline that downstream Bun depends on, so it is time-sensitive but low-risk.

@alii
alii merged commit 2a51dee into main Jul 2, 2026
47 checks passed
@alii
alii deleted the farm/d6770536/pin-workflow-actions branch July 2, 2026 22:03
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Preview Builds

Commit Release Date
d99bb08b autobuild-preview-pr-269-d99bb08b 2026-07-02 22:19:07 UTC

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.

2 participants