Repository navigation
chore: Use slash tags for launchdarkly/gh-actions - #24
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>
| run: poetry install | ||
|
|
||
| - uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v2.0.2 | ||
| - uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app/v2 |
There was a problem hiding this comment.
🔒 Agentic Security Review
Severity: MEDIUM
Description: CI replaces the immutable verify-hello-app patch tag with the floating major tag verify-hello-app/v2. That tag is force-updated by launchdarkly/gh-actions release automation, and this job still grants id-token: write and passes vars.AWS_ROLE_ARN with use_server_key: true, so a later move of the tag runs new action code that can assume the role and read the hello-app server SDK key.
Impact: Previously this repo ran a fixed patch tag (verify-hello-app-v2.0.2, currently commit 2636f140d1cf8f9bb460299b18b64bbcb1080ea5) and would only pick up a newer action through a reviewed workflow or Dependabot pin bump. verify-hello-app/v2 is a lightweight tag that launchdarkly/gh-actions release-please force-pushes on every component release (git tag -f and git push -f of component/vMAJOR). The next push to main in this repo then executes that unreviewed commit in build-and-run. The composite action calls release-secrets with aws_assume_role set to the supplied role ARN; release-secrets uses aws-actions/configure-aws-credentials, which needs this job's OIDC token, and loads SSM /sdk/common/hello-apps/server-key into LAUNCHDARKLY_SDK_KEY (and the boolean flag key). Anyone who can publish a verify-hello-app release, or otherwise move that tag, therefore gets this repository's GitHub OIDC identity and the hello-app server SDK key without a change in this repo. That is a credentialed supply-chain boundary between team-sdk (gh-actions CODEOWNERS) and this repo, not a public anonymous trigger.
Remediation: Keep the slash tag separator, but pin this credentialed step to an immutable release tag such as launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app/v2.0.2 or to commit 2636f140d1cf8f9bb460299b18b64bbcb1080ea5. Let Dependabot or a reviewed workflow bump that full version. Do not consume the force-pushed verify-hello-app/v2 major tag in a job with id-token: write.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 27eee1d. Configure here.
| run: poetry install | ||
|
|
||
| - uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v2.0.2 | ||
| - uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app/v2 |
There was a problem hiding this comment.
Action version tag may not exist
High Severity
The workflow pins verify-hello-app to verify-hello-app/v2. Published launchdarkly/gh-actions tags and docs still use dash-style names, and that slash ref does not appear among them. GitHub Actions cannot resolve a missing ref, so this CI job fails before the sample app runs.
Reviewed by Cursor Bugbot for commit 27eee1d. Configure here.
There was a problem hiding this comment.
False positive: these slash tags are published in launchdarkly/gh-actions (git ls-remote --tags https://github.com/launchdarkly/gh-actions lists contract-tests/v1, publish-pages/v1, release-secrets/v1, sign-dlls/v1, persistent-stores/v0, verify-hello-app/v2, etc.), and this PR's CI jobs resolve them. See launchdarkly/gh-actions#137.
There was a problem hiding this comment.
Risk: medium. Not approved (SDK rule 3: only version-bump workflow changes may be approved; this retags verify-hello-app from a pinned patch to a floating slash major). Cursor Bugbot completed unsuccessfully with 1 unresolved high-severity finding, so human review is needed and no reviewers were assigned.
Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver




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 verify-hello-app step in CI to reference
launchdarkly/gh-actionswith the major-version slash tag@verify-hello-app/v2instead of the old dash tag@verify-hello-app-v2.0.2.This aligns with how that repo publishes refs so Dependabot can bump the action independently; step inputs (
use_server_key,role_arn,command) are unchanged.Reviewed by Cursor Bugbot for commit 27eee1d. Bugbot is set up for automated code reviews on this repo. Configure here.