From 89493892b281899fba831c26e9f981d8adfc9f7f Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Mon, 17 Feb 2025 12:18:47 +0000 Subject: [PATCH] ci: add default gh token permissions to open PRs (#128) ## What? * [x] Add default `GITHUB_TOKEN` permissions to open PRs for `release-please` workflow. ## Why? To be able to use it to open PRs for `release-please` and run tests only with cargo updates. --- .github/workflows/release.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ec7d7d57..3cdbd113 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,12 @@ name: Release +# Give permissions to the release-please to open, update PRs +# and commit to PRs the repository to update Cargo.lock +permissions: + contents: write + pull-requests: write + id-token: write + on: push: branches: