Repository navigation
chore: Use slash tags for launchdarkly/gh-actions - #29
Conversation
Co-Authored-By: Jason Bailey <jbailey@launchdarkly.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Jason Bailey <jbailey@launchdarkly.com>
There was a problem hiding this comment.
Risk: medium. Not approved (rule 3: Approve only allowed workflow changes). This retags existing launchdarkly/gh-actions refs from pinned dash tags to floating slash major tags rather than a version bump, so human review is needed and no reviewers were assigned.
Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver
| - run: ./gradlew assemble | ||
|
|
||
| - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.1 | ||
| - uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets/v1 |
There was a problem hiding this comment.
🔒 Agentic Security Review
Severity: MEDIUM
Description: build-and-run now executes launchdarkly/gh-actions at the moving tags release-secrets/v1 and verify-hello-app/v2. Those tags are force-updated by that repo's release workflow and are not immutable releases. The job grants id-token: write, has no environment approval, and passes vars.AWS_ROLE_ARN plus the hello-app SSM parameter names, so whatever commit those tags point at runs with this repository's OIDC identity and can assume the role and read the server SDK key and flag key without a reviewed pin bump in this repo.
Impact: A principal who can push main or force-update tags in launchdarkly/gh-actions can change the only steps that mint this workflow's OIDC token and call AssumeRoleWithWebIdentity on vars.AWS_ROLE_ARN. The next schedule, push to main or feat/**, or same-repo pull_request then runs that code and can export /sdk/common/hello-apps/server-key and boolean-flag-key. The previous uses were immutable patch releases, so this removes the consumer-repo review gate before credentialed execution. Fork pull_request runs are not the path; tag update rights on gh-actions are.
Remediation: Pin both uses entries to full commit SHAs (the previous immutable patch tags are the alternative reviewed pin) and bump them only through a reviewed workflow change. If major-line tracking stays, keep those tags limited to a protected release identity and keep the AWS role trust restricted to this repository's workflow subject, so a force-push of release-secrets/v1 or verify-hello-app/v2 cannot assume vars.AWS_ROLE_ARN.


Summary
Switches
launchdarkly/gh-actionsaction refs from dash tags (<action>-vX.Y.Z) to the major-version slash tags (<action>/vN). Dependabot cannot update each action on its own with dash tags; see launchdarkly/gh-actions#137.Link to Devin session: https://app.devin.ai/sessions/266e8012a1a349ea90b96acd22b2b0ef
Open in Devin Desktop: https://app.devin.ai/desktop/session/266e8012a1a349ea90b96acd22b2b0ef?variant=devin
Requested by: @jsonbailey
Note
Overview
Updates the CI workflow so
release-secretsandverify-hello-apppin to slash-style major tags (release-secrets/v1,verify-hello-app/v2) instead of the old dash tags (release-secrets-v1.2.1,verify-hello-app-v2.0.2). Step inputs and commands are unchanged; only the action refs move to the format that supports per-action Dependabot updates.Reviewed by Cursor Bugbot for commit 3d9f39f. Bugbot is set up for automated code reviews on this repo. Configure here.