-
-
Notifications
You must be signed in to change notification settings - Fork 0
ci: release workflow #46
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,10 @@ | ||
| github: | ||
| owner: getsentry | ||
| repo: sentry-go | ||
| changelogPolicy: simple | ||
| targets: | ||
| - name: github | ||
| - name: registry | ||
| type: sdk | ||
| config: | ||
| canonical: 'github:getsentry/sentry-zig' | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||||||||||||||||
| name: Prepare Release | ||||||||||||||||||||
| on: | ||||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||||
| inputs: | ||||||||||||||||||||
| version: | ||||||||||||||||||||
| description: Version to release | ||||||||||||||||||||
| required: true | ||||||||||||||||||||
| force: | ||||||||||||||||||||
| description: Force a release even when there are release-blockers (optional) | ||||||||||||||||||||
| required: false | ||||||||||||||||||||
| jobs: | ||||||||||||||||||||
| release: | ||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||
| name: "Release a new version" | ||||||||||||||||||||
| steps: | ||||||||||||||||||||
| - name: Get auth token | ||||||||||||||||||||
| id: token | ||||||||||||||||||||
| uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | ||||||||||||||||||||
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | ||||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| token: ${{ steps.token.outputs.token }} | ||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||
| - name: Prepare release | ||||||||||||||||||||
| uses: getsentry/action-prepare-release@v1 | ||||||||||||||||||||
| env: | ||||||||||||||||||||
| GITHUB_TOKEN: ${{ steps.token.outputs.token }} | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| version: ${{ github.event.inputs.version }} | ||||||||||||||||||||
| force: ${{ github.event.inputs.force }} | ||||||||||||||||||||
|
Comment on lines
+13
to
+32
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 3 months ago To fix the problem, we should add a permissions:
contents: readdirectly after the
Suggested changeset
1
.github/workflows/release.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.
Bug: Registry Reference Mismatch Causes Tooling Issues
The
canonicalregistry reference points tosentry-zig, but thegithubconfiguration specifiessentry-go. This inconsistency could cause release tooling to interact with or publish to the wrong repository.