Skip to content
Open
Show file tree
Hide file tree
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/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# token does neither.
id: app
if: env.HAS_APP == 'true'
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Maintainers get a hand edit to a generator-owned release workflow, which the next generated commit can overwrite or conflict on. CLAUDE.md lists "the publish, release and sync workflows" as generator-owned. This commit changes the uses: pin in release-please.yml but has no Stainless-Generated-From trailer. Fix: make the v3.4.0 pin come from the SDK pipeline's workflow template so the generated commit writes it. If the pins are meant to be maintained here, add release-please.yml to CLAUDE.md's hand-written list and stop Dependabot editing it.

Why this was flagged

Commit 864330d ("ci(deps): bump actions/create-github-app-token") changes .github/workflows/release-please.yml:26 from 64ab729… (v3.3.0) to f418cff… (v3.4.0). The commit has no Stainless-Generated-From trailer. CLAUDE.md ("Who owns which files") says the release workflow is generator-owned: "The next generated commit rewrites them, and an edit conflicts." REVIEW.md asks for any change to such a file outside a generated commit to be reported as Important. On the next regeneration the pipeline either reverts the pin to whatever its template holds or hits a patch conflict on this line. CLAUDE.md says such a conflict "blocks every SDK's release, not only this one". The .github/dependabot.yml github-actions entry (directory "/") is what produces these edits, and nothing exempts generator-owned workflows from it. seal-dispatch.yml is not part of this finding because its header calls it custom code that is kept across regenerations.

Verification: nit. The rule is broken as written, but the concrete overwrite or conflict harm looks small in practice. The trigger is the SDK pipeline regenerating .github/workflows/release-please.yml after this merge. The diff changes line 26 from v3.3.0 to v3.4.0. The only commit in range, 864330d, is signed off by dependabot and has no Stainless-Generated-From trailer.

with:
client-id: ${{ secrets.SDK_APP_ID }}
private-key: ${{ secrets.SDK_APP_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/seal-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Mint a pipeline token from the GitHub App
id: app
if: env.HAS_APP == 'true'
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: ${{ secrets.SDK_APP_ID }}
private-key: ${{ secrets.SDK_APP_PRIVATE_KEY }}
Expand Down
Loading