Repository navigation
chore: Use slash tags for launchdarkly/gh-actions #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ jobs: | |
| - name: Install dependencies | ||
| 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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Action version tag may not existHigh Severity The workflow pins Reviewed by Cursor Bugbot for commit 27eee1d. Configure here.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. False positive: these slash tags are published in |
||
| with: | ||
| use_server_key: true | ||
| role_arn: ${{ vars.AWS_ROLE_ARN }} | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 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.