Skip to content

Commit 4d7b9a0

Browse files
authored
Merge pull request #62 from wiseflat/dev/mgarcia/optimize-github-worflow-2
ci(docker-publish): add write permissions for contents, packages, id-token
2 parents ca4be12 + 0b26859 commit 4d7b9a0

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: Docker
22

3-
# This workflow uses actions that are not certified by GitHub.
4-
# They are provided by a third-party and are governed by
5-
# separate terms of service, privacy policy, and support
6-
# documentation.
7-
83
on:
94
push:
105
branches: [ "main" ]
@@ -14,12 +9,14 @@ on:
149
branches: [ "main" ]
1510

1611
env:
17-
# Use docker.io for Docker Hub if empty
1812
REGISTRY: ghcr.io
19-
# github.repository as <account>/<repo>
2013
IMAGE_NAME_UI: ${{ github.repository }}-ui
2114
IMAGE_NAME_ANSIBLE: ${{ github.repository }}-ansible
2215

16+
permissions:
17+
contents: write
18+
packages: write
19+
id-token: write
2320

2421
jobs:
2522
build-ui:
@@ -137,6 +134,10 @@ jobs:
137134
release:
138135
needs: [build-ui, build-ansible]
139136
runs-on: ubuntu-latest
137+
permissions:
138+
contents: write
139+
packages: write
140+
id-token: write
140141
if: github.ref == 'refs/heads/main'
141142
steps:
142143
- name: Set version (SemVer) for release

0 commit comments

Comments
 (0)