Skip to content

Commit

Permalink
fix(CI): add contents read permission
Browse files Browse the repository at this point in the history
Signed-off-by: sylvain-pierrot <[email protected]>
  • Loading branch information
sylvain-pierrot committed Jun 13, 2024
1 parent 77f6f80 commit 0287d9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
name: Build and publish image api to ghcr.io
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +41,7 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: type=sha
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
name: Build and publish image webapp to ghcr.io
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +41,7 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE_NAME }}
tags: type=sha
Expand Down

0 comments on commit 0287d9d

Please sign in to comment.