-
Notifications
You must be signed in to change notification settings - Fork 112
ci: add bump version workflow #267
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: main
Are you sure you want to change the base?
Changes from all commits
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,25 @@ | ||||||||||||||||||||||||||||||||
| name: Bump Version | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||
| bump_version: | ||||||||||||||||||||||||||||||||
| name: Bump Version | ||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v3 | ||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||
| fetch-depth: '0' | ||||||||||||||||||||||||||||||||
| - name: Set branch name | ||||||||||||||||||||||||||||||||
| id: extract_branch | ||||||||||||||||||||||||||||||||
| run: echo "::set-output name=branch_name::$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})" | ||||||||||||||||||||||||||||||||
| - name: Bump version and push tag | ||||||||||||||||||||||||||||||||
| id: bump_version | ||||||||||||||||||||||||||||||||
| uses: anothrNick/[email protected] | ||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | ||||||||||||||||||||||||||||||||
| WITH_V: true | ||||||||||||||||||||||||||||||||
| DEFAULT_BUMP: patch | ||||||||||||||||||||||||||||||||
| PRERELEASE: true | ||||||||||||||||||||||||||||||||
| RELEASE_BRANCHES: ${{ steps.extract_branch.outputs.branch_name }} | ||||||||||||||||||||||||||||||||
|
Comment on lines
+8
to
+25
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 4 months ago To fix the issue, we will add a
Suggested changeset
1
.github/workflows/bump-version.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
||||||||||||||||||||||||||||||||
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.
Consider explicitly setting
permissions: contents: writeat the root or job level to ensure the action has the minimum required scope to push tags.