Skip to content

ci: add Dependabot, pin actions to SHAs, and set least-privilege token permissions - #235

Open
rivassec wants to merge 1 commit into
elastic:mainfrom
rivassec:harden/ci-supply-chain
Open

rivassec wants to merge 1 commit into
elastic:mainfrom
rivassec:harden/ci-supply-chain

Conversation

@rivassec

Copy link
Copy Markdown

Additive supply-chain / CI hardening:

  • Add .github/dependabot.yml for github-actions and gomod (scoped to testing/testrunner, the only module).
  • Pin all third-party actions to commit SHAs with version comments (also upgrades stale majors: checkout@v2->v4.2.2, setup-go@v3->v5.6.0, artifact actions->v4.x).
  • Add least-privilege permissions: to the workflows: top-level contents: read, with a job-level repository-projects: write on the add-to-project job so its behavior is unchanged.

No behavior change. Happy to split this into separate PRs (Dependabot / pinning / permissions) if you prefer.

@rivassec
rivassec force-pushed the harden/ci-supply-chain branch from 9463b6e to 34c9a7a Compare August 24, 2026 00:37
@cla-checker-service

cla-checker-service Bot commented Aug 24, 2026

Copy link
Copy Markdown

💚 CLA has been signed

…rmissions

Add .github/dependabot.yml covering github-actions and the testrunner
gomod module (weekly, limit 5). Pin all third-party actions to commit
SHAs with version comments, upgrading stale majors (checkout v2->v4.2.2,
setup-go v3->v5.6.0). Add per-workflow least-privilege permissions:
contents: read across workflows, plus a job-level repository-projects:
write for the add-to-project job. First-party elastic/* refs and local
reusable workflow calls are left untouched.
@rivassec
rivassec force-pushed the harden/ci-supply-chain branch from 34c9a7a to 1d9d5b8 Compare August 24, 2026 00:39
@rivassec
rivassec marked this pull request as ready for review August 24, 2026 00:40
@rivassec
rivassec requested a review from a team as a code owner August 24, 2026 00:40
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.

1 participant