Skip to content

Commit df02884

Browse files
authored
Merge pull request #4 from Slingexe/alert-autofix-1
Potential fix for code scanning alert no. 1: Workflow does not contain permissions
2 parents a07ab1f + 54dc456 commit df02884

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docker-publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build and Push Docker Image
22

3+
permissions:
4+
contents: read
5+
packages: write
6+
37
on:
48
release:
59
types: [published]
@@ -63,4 +67,4 @@ jobs:
6367
docker buildx build --platform linux/amd64,linux/arm64 \
6468
--tag ${{ env.REPO_NAME }}:${{ env.VERSION }} \
6569
--tag ${{ env.REPO_NAME }}:latest \
66-
--push .
70+
--push .

0 commit comments

Comments
 (0)