Skip to content

Pin workflow actions and service images to immutable SHAs - #58964

Merged
swannysec merged 1 commit into
mainfrom
harden/sha-pin-workflow-actions
Jun 9, 2026
Merged

Pin workflow actions and service images to immutable SHAs#58964
swannysec merged 1 commit into
mainfrom
harden/sha-pin-workflow-actions

Conversation

@swannysec

Copy link
Copy Markdown
Contributor

Pins the remaining tag- and branch-referenced GitHub Actions and the postgres service image to specific commit SHAs / digests, so workflow runs resolve to fixed versions. Edited in the xtask workflow DSL and regenerated with cargo xtask workflows.

  • bufbuild/buf-setup-actiona47c93e0 (v1.50.0)
  • bufbuild/buf-breaking-actionc57b3d84 (v1.1.4)
  • digitalocean/action-doctl3cb39531 (v2.5.2)
  • postgres:15@sha256:1b92e7a8…
  • deploy_docs.yml reusable workflow → pinned to a commit

Release Notes:

  • N/A

Pin every tag/branch-referenced GitHub Action and the postgres service
image to a full commit SHA / digest, closing the remaining mutable-ref
supply-chain gap (tag and branch refs are force-pushable — the
tj-actions/changed-files class, CVE-2025-30066).

Edits are in the xtask workflow DSL; the YAML is regenerated with
`cargo xtask workflows`.

- bufbuild/buf-setup-action     @v1   -> @a47c93e0 (v1.50.0)
- bufbuild/buf-breaking-action  @v1   -> @c57b3d84 (v1.1.4)
- digitalocean/action-doctl     @v2   -> @3cb39531 (v2.5.2), 2 sites
- postgres:15 -> postgres:15@sha256:1b92e7a8 (multi-arch OCI index), 4 sites
- deploy_docs.yml reusable workflow @main -> @3f16f7b9

The deploy_docs change pins a same-repo reusable workflow that was
referenced by the mutable `main` branch. It now points to a commit;
consider managing it with Dependabot or switching to a local
(./.github/workflows/deploy_docs.yml) reference.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 9, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 9, 2026
@swannysec swannysec changed the title ci: pin workflow actions and service images to immutable SHAs Pin workflow actions and service images to immutable SHAs Jun 9, 2026
@swannysec
swannysec requested a review from ConradIrwin June 9, 2026 19:18

@ConradIrwin ConradIrwin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@swannysec
swannysec added this pull request to the merge queue Jun 9, 2026
Merged via the queue into main with commit 8fced01 Jun 9, 2026
45 checks passed
@swannysec
swannysec deleted the harden/sha-pin-workflow-actions branch June 9, 2026 19:35
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…ries#58964)

Pins the remaining tag- and branch-referenced GitHub Actions and the
`postgres` service image to specific commit SHAs / digests, so workflow
runs resolve to fixed versions. Edited in the xtask workflow DSL and
regenerated with `cargo xtask workflows`.

- `bufbuild/buf-setup-action` → `a47c93e0` (v1.50.0)
- `bufbuild/buf-breaking-action` → `c57b3d84` (v1.1.4)
- `digitalocean/action-doctl` → `3cb39531` (v2.5.2)
- `postgres:15` → `@sha256:1b92e7a8…`
- `deploy_docs.yml` reusable workflow → pinned to a commit

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…ries#58964)

Pins the remaining tag- and branch-referenced GitHub Actions and the
`postgres` service image to specific commit SHAs / digests, so workflow
runs resolve to fixed versions. Edited in the xtask workflow DSL and
regenerated with `cargo xtask workflows`.

- `bufbuild/buf-setup-action` → `a47c93e0` (v1.50.0)
- `bufbuild/buf-breaking-action` → `c57b3d84` (v1.1.4)
- `digitalocean/action-doctl` → `3cb39531` (v2.5.2)
- `postgres:15` → `@sha256:1b92e7a8…`
- `deploy_docs.yml` reusable workflow → pinned to a commit

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants