Skip to content

security: Pin Github Actions#458

Open
hhvrc wants to merge 1 commit intodevelopfrom
security/pin-gh-actions
Open

security: Pin Github Actions#458
hhvrc wants to merge 1 commit intodevelopfrom
security/pin-gh-actions

Conversation

@hhvrc
Copy link
Copy Markdown
Contributor

@hhvrc hhvrc commented May 6, 2026

No description provided.

@hhvrc hhvrc self-assigned this May 6, 2026
Copilot AI review requested due to automatic review settings May 6, 2026 19:43
@github-project-automation github-project-automation Bot moved this to Todo in Roadmap May 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Cpp-Linter Report ✔️

No problems need attention.

Have any feedback or feature suggestions? Share it here.

Copy link
Copy Markdown
Contributor

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 hardens the repository’s GitHub Actions supply chain by replacing tag-based action references (e.g., @vX) with pinned commit SHAs across CI workflows and composite actions.

Changes:

  • Pin commonly used GitHub-maintained actions (checkout, setup-node, setup-python, cache, upload/download-artifact, CodeQL) to specific commit SHAs.
  • Pin third-party actions (e.g., cpp-linter/cpp-linter-action, ncipollo/release-action, pnpm/action-setup) to specific commit SHAs.
  • Apply the same pinning approach consistently in both workflows and .github/actions/* composite actions.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/get-vars.yml Pins checkout/pnpm/setup-node used for generating shared workflow outputs.
.github/workflows/cpp-linter.yml Pins checkout and cpp-linter action used during PR/push linting.
.github/workflows/codeql.yml Pins checkout and CodeQL init/autobuild/analyze steps for security scanning.
.github/workflows/ci-build.yml Pins checkout and artifact/release actions used throughout the build/release pipeline.
.github/actions/merge-partitions/action.yml Pins checkout, setup-python, and artifact actions in the composite merge step.
.github/actions/cdn-upload-firmware/action.yml Pins download-artifact steps used for CDN upload inputs.
.github/actions/build-staticfs/action.yml Pins checkout/cache/setup-python/download/upload actions for staticfs builds.
.github/actions/build-frontend/action.yml Pins checkout/pnpm/setup-node/upload actions for frontend builds.
.github/actions/build-firmware/action.yml Pins checkout/cache/setup-python/upload actions for firmware builds.
.github/actions/build-compilationdb/action.yml Pins checkout/cache/setup-python used to generate compilation DB for analysis.

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

Comment on lines +87 to 91
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
name: Install pnpm
with:
package_json_file: ./.github/scripts/package.json
run_install: false
Comment on lines +18 to 22
- uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
name: Install pnpm
with:
package_json_file: ./frontend/package.json
run_install: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants