Skip to content

ci: switch to using SHAs for actions#105

Merged
patrick-stephens merged 1 commit intomainfrom
switch_to_action_shas
Mar 19, 2026
Merged

ci: switch to using SHAs for actions#105
patrick-stephens merged 1 commit intomainfrom
switch_to_action_shas

Conversation

@patrick-stephens
Copy link
Contributor

Change to using SHAs for all actions to improve security posture.

Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
@vercel
Copy link

vercel bot commented Mar 19, 2026

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

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Mar 19, 2026 1:14pm

Request Review

Copy link

Copilot AI left a comment

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 improves CI supply-chain security by pinning GitHub Actions dependencies to immutable commit SHAs and adds automation to enforce that policy going forward.

Changes:

  • Replace uses: ...@v* action references with commit-SHA pins across workflows.
  • Add a Pinact workflow job to review/enforce action pinning on PRs.
  • Update Dependabot configuration to group GitHub Actions updates.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.pinact.yaml Adds Pinact configuration file to support automated action pinning checks.
.github/workflows/lint.yaml Pins actions to SHAs and adds a new job to review/enforce pinned actions on PRs.
.github/workflows/cron-run-scan.yaml Pins external actions (GCP auth/secrets, checkout, docker login, create PR) to SHAs.
.github/workflows/call-add-mapping-version.yaml Pins external actions (GCP auth/secrets, checkout, create PR) to SHAs in the reusable workflow.
.github/workflows/build-offline.yaml Pins checkout and upload-artifact actions to SHAs.
.github/dependabot.yml Groups GitHub Actions updates and simplifies YAML values.
Comments suppressed due to low confidence (1)

.github/workflows/lint.yaml:37

  • The Actionlint job downloads and executes a script from raw.githubusercontent.com/.../main/... at runtime. This undermines the goal of pinning CI dependencies, since the contents can change without review. Consider pinning the script URL to a specific commit SHA (or using a versioned release artifact/checksum) so the workflow is reproducible and supply-chain risk is reduced.
      - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
      - run: |
          echo "::add-matcher::.github/actionlint-matcher.json"
          bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
          ./actionlint -color -shellcheck=

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +49 to +56
actions-pin-sha:
runs-on: ubuntu-latest
name: PR - Actions Pin SHA
permissions:
contents: read
# For ReviewDog to post comments to the PR
pull-requests: write
steps:
@patrick-stephens patrick-stephens merged commit 694143c into main Mar 19, 2026
11 checks passed
@patrick-stephens patrick-stephens deleted the switch_to_action_shas branch March 19, 2026 13:18
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