-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Clean up project #5250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Clean up project #5250
Changes from 1 commit
4869125
c5c308f
3c5284b
a6ef752
35169db
85f58a5
4aaee4d
45cd0ec
927adab
9bea8cb
33f8fb8
dbcd691
5c27ef2
42e4a8f
0252979
8cc8f3a
f93fa61
0dc88d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||
| name: Changelog | ||||||
|
|
||||||
| on: | ||||||
| release: | ||||||
| types: | ||||||
| - published | ||||||
|
|
||||||
| permissions: | ||||||
| contents: write | ||||||
|
|
||||||
| jobs: | ||||||
| changelog: | ||||||
| runs-on: ubuntu-latest | ||||||
|
|
||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
| with: | ||||||
| ref: master | ||||||
| fetch-depth: 0 | ||||||
|
|
||||||
| - name: Generate changelog | ||||||
| uses: janheinrichmerker/action-github-changelog-generator@v2.4 | ||||||
|
||||||
| uses: janheinrichmerker/action-github-changelog-generator@v2.4 | |
| uses: janheinrichmerker/action-github-changelog-generator@0123456789abcdef0123456789abcdef01234567 # v2.4 |
Copilot
AI
Mar 5, 2026
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.
Requiring a custom secret token can make this workflow fail in environments where CHANGELOG_GITHUB_TOKEN isn’t configured. If elevated permissions aren’t required, prefer the built-in token (e.g., ${{ github.token }} / ${{ secrets.GITHUB_TOKEN }}) and rely on permissions: contents: write for pushing.
| token: ${{ secrets.CHANGELOG_GITHUB_TOKEN }} | |
| token: ${{ github.token }} |
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.
This repository appears to use
main(per PR metadata/diff context), but the workflow checks outmaster. This will fail in repos without amasterbranch and also risks pushing the changelog to the wrong branch. Consider checking out the default branch (e.g.,ref: ${{ github.event.repository.default_branch }}) or explicitlymainif that’s the intended target.