Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: 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.