ci: pin actions and adjust cerbos#2065
Open
franzramadhan wants to merge 2 commits into
Open
Conversation
Contributor
|
🚀 Cloud Run Preview Deployed |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s CI/CD workflows by pinning GitHub Actions to immutable commit SHAs (reducing supply-chain risk from mutable tags) and adjusts the Cerbos policies CI workflow to authenticate Cerbos setup downloads via an App token.
Changes:
- Pinned third-party and official GitHub Actions to specific commit SHAs across the workflow suite.
- Updated
ci_policies.ymlto mint a GitHub App token and pass it intocerbos/cerbos-setup-actionfor authenticated Cerbos setup.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/release_quality_checker.yaml | Pins checkout/setup-node/github-script/tauri/rust-cache/rust-toolchain to SHAs. |
| .github/workflows/release.yml | Pins reearth/changelog-action invocation to a commit SHA. |
| .github/workflows/pr.yml | Pins labeler/semantic-PR/auto-author-assign actions to SHAs. |
| .github/workflows/license_check.yml | Pins checkout/setup-node/cache to SHAs in license-check jobs. |
| .github/workflows/ci_websocket.yml | Pins checkout/rust-toolchain/rust-cache/install-action to SHAs. |
| .github/workflows/ci_ui.yml | Pins checkout/setup-node/cache to SHAs. |
| .github/workflows/ci_subscriber.yml | Pins checkout/setup-go/golangci-lint/codecov to SHAs. |
| .github/workflows/ci_policies.yml | Adds GitHub App token creation and passes token to Cerbos setup; pins related actions. |
| .github/workflows/ci_engine.yml | Pins checkout/remove-unwanted-software/rust-cache/install-action/setup-node to SHAs. |
| .github/workflows/ci_api.yml | Pins checkout/setup-go/golangci-lint/codecov to SHAs. |
| .github/workflows/ci.yml | Pins checkout to SHAs in the main CI dispatcher workflow. |
| .github/workflows/build_docker_push_worker.yml | Pins build/push workflow actions (checkout/toolchain/artifacts/docker/google auth) to SHAs. |
| .github/workflows/build_deploy_websocket.yml | Pins build/deploy workflow actions (checkout/toolchain/artifacts/docker/google auth/gcloud) to SHAs. |
| .github/workflows/build_deploy_ui.yml | Pins build/deploy workflow actions (checkout/setup-node/artifacts/docker/google auth/gcloud) to SHAs. |
| .github/workflows/build_deploy_subscriber.yml | Pins build/deploy workflow actions (checkout/setup-go/artifacts/docker/google auth/gcloud) to SHAs. |
| .github/workflows/build_deploy_policies_cerbos.yml | Pins checkout/setup-go/google auth/gcloud actions to SHAs. |
| .github/workflows/build_deploy_api.yml | Pins checkout/setup-go/artifacts/docker/google auth/gcloud actions to SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
What I've done
actions/checkout@v4→actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1)ci_policies.yml) and passed it tocerbos/cerbos-setup-actionviagithub_tokento fix authentication issues when downloading CerbosWhat I haven't done
0.40.0)How I tested
Screenshot
N/A — CI workflow changes only
Which point I want you to review particularly
ci_policies.yml— confirmGH_APP_ID(var) andGH_APP_PRIVATE_KEY(secret) are correctly provisioned in the repo/org settingsMemo
This is a security hardening change. Pinning to commit SHAs ensures workflows use an immutable snapshot of each action, protecting against tag mutation or takeover. The Cerbos token change was needed because
cerbos-setup-actionrate-limits unauthenticated GitHub API requests during its setup step.