Skip to content

Commit

Permalink
ci: modify workflow permissions
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Jan 31, 2024
1 parent 064433f commit 1209c16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ on:
tags:
- 'v*.*.*'

permissions:
contents: write
# packages: write
# issues: write
permissions:
contents: read

jobs:
releaser:
Expand All @@ -22,7 +20,9 @@ jobs:

build-and-publish-oci:
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: read
packages: write

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -53,4 +53,4 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push the OCI Image
run: docker push ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }}
run: docker push ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }}

0 comments on commit 1209c16

Please sign in to comment.