Skip to content

Pin GitHub Actions to SHAs [SRE-1802] - #10

Draft
tylergohl wants to merge 3 commits into
mainfrom
sre-1802-pin-actions-to-shas
Draft

Pin GitHub Actions to SHAs [SRE-1802]#10
tylergohl wants to merge 3 commits into
mainfrom
sre-1802-pin-actions-to-shas

Conversation

@tylergohl

@tylergohl tylergohl commented May 21, 2026

Copy link
Copy Markdown

Summary

Pin GitHub Actions references in this repo to immutable commit SHAs (with the original tag/branch preserved in a trailing comment). Part of SRE-1802 — org-wide supply-chain hardening.

Scope

This PR pins:

  • Internal ctrliq/* reusable workflow and action references
  • External actions not handled by clo-ciq's parallel Node 20 effort

No actions in this repo were claimed by clo-ciq's effort — this PR pins everything.

Files touched

  • .github/workflows/build-latest.yml
  • .github/workflows/ci.yml
  • .github/workflows/release.yml

Test plan

  • Workflow runs succeed on this branch (or on next trigger after merge)
  • Once this and any companion clo-ciq PR merge, this repo has zero unpinned external/internal refs and sha_pinning_required can be enabled on it

Copilot AI review requested due to automatic review settings May 21, 2026 01:32
@ciq-it-service-account

ciq-it-service-account commented May 21, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copilot AI 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.

Pull request overview

This PR hardens the repository’s GitHub Actions supply chain by replacing mutable action tags with immutable commit SHAs across the repo’s workflows, aligning with SRE-1802.

Changes:

  • Pinned actions/checkout to a specific commit SHA in all workflows.
  • Pinned actions/setup-python to a specific commit SHA in all workflows.
  • Retained the prior major version reference as an inline comment (e.g., # v2) for readability.

Reviewed changes

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

File Description
.github/workflows/build-latest.yml Pins actions/checkout and actions/setup-python to immutable SHAs for the build/push workflow.
.github/workflows/ci.yml Pins actions/checkout and actions/setup-python to immutable SHAs for both CI jobs (Podman + Docker).
.github/workflows/release.yml Pins actions/checkout and actions/setup-python to immutable SHAs for the release workflow.

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

Comment on lines +13 to +15
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- uses: actions/setup-python@v2
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
Comment thread .github/workflows/ci.yml
Comment on lines +17 to +19
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- uses: actions/setup-python@v2
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
Comment thread .github/workflows/ci.yml
Comment on lines +36 to +38
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- uses: actions/setup-python@v2
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
Comment on lines +17 to +19
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2

- uses: actions/setup-python@v2
- uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants