Repository navigation
ci: set least-privilege permissions and harden workflow jobs - #5754
Conversation
SEC-818 sets one security baseline for every workflow in the org. This
repo already pinned every action, ran harden-runner and gave almost every
job its own permissions block. Gaps closed here:
- All workflows: workflow-level permissions go from contents: read to {}.
- Jobs without a block get one: live-integration-tests detect-affected
and discover, verify secret-paths, sync-secret-path-manifest sync
(contents: read); prepare-for-prod-ut-deploy notify-control-plane ({}).
- sync-secret-path-manifest.yml: harden-runner moves to the first step.
- persist-credentials: false on every checkout, except jobs that run git
with the checkout token later: draft-new-release, publish-new-release,
update-ingestion-service, live-integration-tests detect-affected,
housekeeping branches, and the seven devops/operator PR jobs that run
ryancyq/github-signed-commit. Each kept checkout has a comment.
No job loses a GITHUB_TOKEN scope.
Verify: verify, commitlint, dt-test, verify-server-start, build-pr-artifacts
and live-integration-tests pass on this PR as on develop.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
🔒 Scanned for secrets using gitleaks 8.30.1
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
The Verify job runs prettier on workflow files. Prettier wants one space before an inline comment. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5754 +/- ##
========================================
Coverage 92.42% 92.42%
========================================
Files 741 741
Lines 41048 41048
Branches 9635 9640 +5
========================================
Hits 37938 37938
Misses 2848 2848
Partials 262 262 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
arpl
left a comment
There was a problem hiding this comment.
Approved by the SEC-784 chore review loop at this commit.
Checked here: CI is green; every pin resolves to its tag; each job's permissions were read against what its steps use, and no job lost a scope or checkout credential it needs; nothing else in the workflows changed structurally.
Not run: jobs on release, deploy, schedule or dispatch triggers do not run on a PR. They were read, not executed, so watch their first run after merge.



What changed
The repo already pinned every action, ran harden-runner and gave almost every job its own permissions block. This PR closes the gaps.
contents: readto{}.live-integration-testsdetect-affectedanddiscover,verifysecret-paths,sync-secret-path-manifestsync(contents: read),prepare-for-prod-ut-deploynotify-control-plane({}).sync-secret-path-manifest.yml: harden-runner moves to the first step.persist-credentials: falseon every checkout, except jobs that run git with the checkout token later:draft-new-release,publish-new-release,update-ingestion-service,live-integration-testsdetect-affected,housekeepingbranches, and the seven devops and operator PR jobs that runryancyq/github-signed-commit. Each kept checkout has a comment.GITHUB_TOKENscope.Why
https://linear.app/rudderstack/issue/SEC-818 sets one GitHub Actions security baseline for every org repo (pass 1: permissions, harden-runner, SHA pins, checkout credentials).
How to verify
verify,commitlint,dt-test-and-report-code-coverage,verify-server-start,build-pr-artifactsandlive-integration-testspass on this PR as ondevelop.prepare-for-*,publish-new-release,draft-new-release,update-ingestion-service) cannot fully run on this PR. Their permission blocks do not change, and their git-pushing checkouts keep credentials.Not covered (pass 2)
timeout-minutesandconcurrencyon jobs and workflows..github/actionlint.yaml(self-hosted labels still fail actionlint, as on the base branch).🤖 Generated with Claude Code