Skip to content

ci: regenerate THIRD-PARTY-NOTICES.txt on Dependabot pull requests - #5

Merged
hotdogee merged 1 commit into
mainfrom
ci/dependabot-notices
Oct 30, 2026
Merged

hotdogee merged 1 commit into
mainfrom
ci/dependabot-notices

Conversation

@hotdogee

Copy link
Copy Markdown
Owner

Dependabot can't run scripts/third-party-notices.ps1, so any bump of a crate linked into the executables fails the notices check in CI, as #3 did. That step also skips clippy, the tests and the MSI.

This adds a workflow that regenerates the file on Dependabot pull requests, commits it to the branch and starts CI on the new commit.

  • Starting CI: a push made with GITHUB_TOKEN doesn't start CI by itself, so the workflow uses workflow_dispatch. No secrets are needed.
  • Who it runs for: the job has write access, so on pull requests it only runs when Dependabot opened them from this repository. It never merges.
  • Rebasing: [dependabot skip] in the commit message lets Dependabot keep rebasing the branch. A rebase drops the commit and the workflow adds it again.
  • Pinning: follows release.yml, with the third-party action pinned to a commit SHA.

workflow_dispatch only works once the file is on main, so the end-to-end test has to happen after merging.

🤖 Generated with Claude Code

Dependabot cannot run the script, so bumping a crate linked into the
executables failed the notices check, which also skipped clippy, the tests
and the MSI. The new workflow commits the regenerated file to the pull
request branch and starts CI on that commit with workflow_dispatch, because
a GITHUB_TOKEN push does not start CI by itself. No secrets are needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hotdogee
hotdogee merged commit dbe8677 into main Oct 30, 2026
4 checks passed
@hotdogee
hotdogee deleted the ci/dependabot-notices branch October 30, 2026 15:43
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