Skip to content

ci: pin GitHub Actions to commit SHAs - #9223

Merged
khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1172-flagsmith-pin-github-actions-to-1f4f
Dec 2, 2026
Merged

khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1172-flagsmith-pin-github-actions-to-1f4f

Conversation

@khvn26

@khvn26 khvn26 commented Dec 2, 2026

Copy link
Copy Markdown
Member

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Every third-party action and reusable workflow in .github/workflows and .github/actions now points at a full commit SHA. The version tag is kept as a comment, for example actions/checkout@3d3c42e… # v7.0.1. Local ./ actions are not changed.

  • Each ref is pinned to the commit its tag points at today. Nothing is upgraded. The comment names the most specific tag on that commit, so @v4 becomes # v4.4.0.
  • actions-cool/check-user-permission@main is pinned to v2.4.0. main is only one CHANGELOG commit ahead of that release.
  • actions/create-github-app-token was already pinned but had no tag comment. It now has # v3.2.0.

renovate.json now extends github>Flagsmith/renovate-config:security-only instead of repeating its settings, and our own copy of gitIgnoredAuthors is removed. With this change, Renovate:

The package-scoped commit scopes (API, MCP, CI, …) still apply.

Contributes to ENG-1172

How did you test this code?

  • renovate-config-validator --strict renovate.json passes.
  • actionlint reports the same findings before and after the change, apart from the existing unknown depot-* runner labels.
  • Every uses: that is not a local ./ action matches @<40-char sha> # v<version>.

Pin every third-party action and reusable workflow to a full commit SHA,
with the version tag as a comment. Extend the shared Renovate preset so
pins stay current via `helpers:pinGitHubActionDigests`.

Generated with [Linear](https://linear.app/flagsmith/agent-session/07c42570-c4e2-4c33-8ff9-d68a5adbf5fc)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
@khvn26 khvn26 added the ci label Dec 2, 2026 — with Linear Code
@vercel

vercel Bot commented Dec 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
docs Ignored Ignored Dec 2, 2026 8:10pm UTC
flagsmith-frontend-preview Ignored Ignored Dec 2, 2026 8:10pm UTC
flagsmith-frontend-staging Ignored Ignored Dec 2, 2026 8:10pm UTC

Request Review

@github-actions github-actions Bot added the ci-cd Build, test and deployment related label Dec 2, 2026
@khvn26
khvn26 marked this pull request as ready for review December 2, 2026 20:14
@khvn26
khvn26 requested a review from a team as a code owner December 2, 2026 20:14
@khvn26
khvn26 requested review from talissoncosta and removed request for a team December 2, 2026 20:14
@github-actions github-actions Bot added ci-cd Build, test and deployment related and removed ci-cd Build, test and deployment related labels Dec 2, 2026

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 25 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Pins third-party GitHub Actions and reusable workflows to full commit SHAs with version-tag comments, and updates renovate.json to a security-only preset. This is a bounded CI/tooling hardening change with no product or runtime behavior changes.

Turn on auto-fix | Re-trigger cubic

@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.96%. Comparing base (139faae) to head (87ea7ff).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9223   +/-   ##
=======================================
  Coverage   98.96%   98.96%           
=======================================
  Files        1724     1724           
  Lines       73879    73879           
=======================================
  Hits        73113    73113           
  Misses        766      766           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-9223 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-9223 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9223 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9223 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9223 Finished ✅ Results ✅

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-16 — run #24080 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  1 minute, 7 seconds
commit  87ea7ff
info  🔄 Run: #24080 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24080 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 4 suites
duration  3.4 seconds
commit  87ea7ff
info  🔄 Run: #24080 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #24080 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  26 passed

Details

stats  26 tests across 15 suites
duration  38.7 seconds
commit  87ea7ff
info  🔄 Run: #24080 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #24080 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  35.9 seconds
commit  87ea7ff
info  🔄 Run: #24080 (attempt 1)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

31 screenshots compared. See report for details.
View full report

@khvn26
khvn26 merged commit 30183b2 into main Dec 2, 2026
71 of 73 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1172-flagsmith-pin-github-actions-to-1f4f branch December 2, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci ci-cd Build, test and deployment related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant