Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 27eee1d. Configure here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Written by Devin

with:
use_server_key: true
role_arn: ${{ vars.AWS_ROLE_ARN }}
Expand Down