Skip to content

Commit

Permalink
Fix permissions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomest committed Jul 31, 2024
1 parent 5889d07 commit bcc5b96
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:

permissions:
id-token: write
contents: read
contents: write
pull-requests: write

jobs:
release:
Expand Down Expand Up @@ -41,8 +42,6 @@ jobs:
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
run: |
ROOT=$(git rev-parse --show-toplevel)
CONSTANTS_MODULE="$ROOT"/src/vibe_core/vibe_core/cli/constants.py
Expand All @@ -54,8 +53,6 @@ jobs:
- name: Open PR to main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
pull-requests: write
run: |
RELEASE_BRANCH=release-main-${{ github.run_id }}
gh pr create -B $RELEASE_BRANCH -H main --title 'Release ${{ github.run_id}}' --body 'Created by Github action'

0 comments on commit bcc5b96

Please sign in to comment.