Skip to content

ci(release): Fix Craft setup - #260

Merged
lcian merged 1 commit into
mainfrom
lcian-patch-1
Jan 12, 2026
Merged

ci(release): Fix Craft setup#260
lcian merged 1 commit into
mainfrom
lcian-patch-1

Conversation

@lcian

@lcian lcian commented Jan 12, 2026

Copy link
Copy Markdown
Member

No description provided.

@lcian
lcian requested a review from a team as a code owner January 12, 2026 09:59
@lcian
lcian merged commit 5c4fac3 into main Jan 12, 2026
15 checks passed
@lcian
lcian deleted the lcian-patch-1 branch January 12, 2026 09:59
force: ${{ inputs.force }}
merge_target: ${{ inputs.merge_target }}
path: clients
secrets: inherit

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: The release-clients.yml workflow uses secrets: inherit with the getsentry/craft@v2 composite action, which is not supported. The required GITHUB_TOKEN will not be passed.
Severity: CRITICAL

🔍 Detailed Analysis

The release-clients.yml workflow attempts to pass secrets to the getsentry/craft@v2 action using secrets: inherit. However, getsentry/craft@v2 is a composite action, which does not support the secrets: inherit syntax according to GitHub Actions documentation. This syntax is only valid for reusable workflows. As a result, the GITHUB_TOKEN generated in a previous step will not be available to the craft action. This will cause the action to fail when it attempts to perform authenticated operations against the GitHub API, such as creating a release.

💡 Suggested Fix

Remove secrets: inherit. Pass the required GITHUB_TOKEN to the getsentry/craft@v2 action explicitly. This can be done by restoring the env block (env: GITHUB_TOKEN: ${{ steps.token.outputs.token }}) or by passing it as an input parameter if the composite action supports one for the token.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: .github/workflows/release-clients.yml#L45

Potential issue: The `release-clients.yml` workflow attempts to pass secrets to the
`getsentry/craft@v2` action using `secrets: inherit`. However, `getsentry/craft@v2` is a
composite action, which does not support the `secrets: inherit` syntax according to
GitHub Actions documentation. This syntax is only valid for reusable workflows. As a
result, the `GITHUB_TOKEN` generated in a previous step will not be available to the
`craft` action. This will cause the action to fail when it attempts to perform
authenticated operations against the GitHub API, such as creating a release.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8466699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant