Skip to content

ci(actions): pin actions to commit SHAs - #122

Merged
framinosona merged 1 commit into
mainfrom
framinosona/pin-actions-to-sha
Nov 22, 2026
Merged

framinosona merged 1 commit into
mainfrom
framinosona/pin-actions-to-sha

Conversation

@framinosona

Copy link
Copy Markdown
Member

Summary

Pin every third-party and shared uses: ref to a full commit SHA, with the version in a trailing # vX.Y.Z comment. 25 refs in 3 file(s); no other line changed.

  • NuGet/login: v1 → v1.2.0
  • actions/checkout: v7 → v7.0.1
  • actions/deploy-pages: v5 → v5.0.1
  • actions/download-artifact: v8 → v8.0.2
  • actions/setup-dotnet: v6 → v6.1.0
  • actions/setup-java: v6 → v6.3.0
  • actions/upload-artifact: v7 → v7.0.2
  • actions/upload-pages-artifact: v5 → v5.0.0
  • advanced-security/component-detection-dependency-submission-action: v0.2.0 → v0.2.0
  • github/codeql-action: v4 → v4.39.4
  • laerdal/github_actions: main → v1.0.83

Why

A tag or branch ref can be moved to different code, a full commit SHA can't. The comment keeps the pin readable and lets Dependabot bump the SHA and the comment together. Each SHA is the commit its previous ref points to today, so behavior is unchanged.

Change Type

  • Feature
  • Bug fix
  • Refactor (refa)
  • Docs only
  • CI/build/tooling

Affected Areas

  • Abstractions
  • Core
  • Platform: Android
  • Platform: iOS/macOS
  • Platform: Windows
  • Platform: DotNetCore fallback
  • Facade (Bluetooth.Maui)
  • Documentation

Behavior And Compatibility

  • Public API changed
  • Exception behavior changed
  • DI registration behavior changed
  • Capability matrix impact
  • No externally visible behavior change

If any box above is checked, describe impact:

Platform Notes

List platform-specific behavior differences introduced or touched.

Tests

  • Unit tests added/updated
  • Integration/smoke tests added/updated
  • Manual platform validation performed
  • Not applicable (explain): workflow/action YAML only, no code change

Validation notes: SHAs resolved from the GitHub API; a script checked that every changed line is a uses: line and that no non-self ref is left unpinned. The CI run on this PR exercises the pinned refs.

Documentation

  • Docs updated in same PR
  • Capability claims verified against implementation
  • Links validated
  • Not applicable (explain): workflow/action YAML only, no code or docs change

Logging / Diagnostics

  • New logs added
  • EventId range validated
  • No logging changes

Risks And Follow-ups

Risk level:

  • Low
  • Medium
  • High

Known limitations or deferred follow-ups:

  • The shared actions' own internal calls still resolve to main; pinning those is a follow-up in that repo.

Checklist

  • I reviewed Docs/Best-Practices/Contribution-DoD.md
  • Commit header follows type (scope): short imperative and is <= 72 chars
  • Commit type is one of: feat, fix, refa, perf, docs, ci, chore, test, build
  • Commit body is 1-2 factual sentences (what/why), no emojis, refs, or co-authors
  • If architectural behavior changed, an ADR was added or updated under Docs/Architecture/ADR

Replace tag and branch refs with full commit SHAs and a version comment, which Dependabot keeps current. No behavior change: each SHA is the commit the previous ref pointed to.
Copilot AI balanced review requested due to automatic review settings November 22, 2026 21:24

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.

🟢 Approval recommended

No active review issues are recorded for the change that pins GitHub Actions and reusable workflows to full commit SHAs.

No open issues 🎉

What changed in this PR

This PR hardens the repository’s GitHub Actions workflows by replacing mutable action references with full commit SHAs.

Changes:

  • Pins 25 action and reusable-workflow references across three workflow files.
  • Adds trailing version comments to keep pinned references readable.
  • Leaves workflow steps, inputs, and conditions unchanged.
File Description
.github/​workflows/​dependency-submission.yml Pins checkout, SDK setup, and dependency-submission actions.
.github/​workflows/​codeql.yml Pins checkout, .NET setup, and CodeQL actions.
.github/​workflows/​ci.yml Pins shared workflows and actions for builds, artifacts, publishing, deployment, and releases.

Review effort: Balanced

@framinosona
framinosona merged commit fa08de7 into main Nov 22, 2026
10 checks passed
@framinosona
framinosona deleted the framinosona/pin-actions-to-sha branch November 22, 2026 23:46
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