Skip to content

Commit

Permalink
Changing permission to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Dec 5, 2024
1 parent c7c3e0a commit 26cdf54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
packages: write

steps:
Expand Down Expand Up @@ -93,6 +93,12 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Check permissions
run: |
curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}
- name: Create Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 26cdf54

Please sign in to comment.