Updated permissions for releases.

This commit is contained in:
SergeantPanda 2025-04-10 13:23:24 -05:00
parent 8d79087fba
commit 10f687acb1
2 changed files with 17 additions and 0 deletions

View file

@ -6,6 +6,11 @@ on:
pull_request:
branches: [ main, dev ]
# Add explicit permissions for the workflow
permissions:
contents: read
packages: write # For publishing to GitHub Container Registry
jobs:
build:
runs-on: ubuntu-latest

View file

@ -13,6 +13,11 @@ on:
- minor
- patch
# Add explicit permissions for the workflow
permissions:
contents: write # For managing releases and pushing tags
packages: write # For publishing to GitHub Container Registry
jobs:
release:
runs-on: ubuntu-latest
@ -39,6 +44,13 @@ jobs:
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
echo "lowercase=$REPO_OWNER" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and Tag
run: |
git add version.py