Skip to content

Commit 9282401

Browse files
mowiesAkshayS198
authored andcommitted
[chore] fix GH token permissions for release creation (open-telemetry#39470)
This PR fixes an issue during the release process where the `publish-stable` pipeline job failed for the last 3 releases with an HTTP 403 ([0.123.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/14182150955/job/39731596593), [0.124.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/14457442306/job/40545089132), [0.124.1](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/14478035233/job/40609097804)). It seems that the default `GITHUB_TOKEN` doesn't have enough permissions to create the release using the GH CLI. Signed-off-by: Moritz Wiesinger <[email protected]>
1 parent 011dd09 commit 9282401

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ jobs:
660660
runs-on: ubuntu-24.04
661661
needs: [lint, unittest, integration-tests]
662662
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'open-telemetry/opentelemetry-collector-contrib'
663+
permissions:
664+
contents: write
663665
steps:
664666
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
665667
- name: Set Release Tag

0 commit comments

Comments
 (0)