Skip to content

Commit 39e6056

Browse files
committed
fix(build): add packages:write permission to Docker reusable workflows
1 parent 80b6355 commit 39e6056

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/_docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ env:
1818
DOTNET_INSTALL_DIR: "./.dotnet"
1919
DOTNET_ROLL_FORWARD: "Major"
2020

21+
permissions:
22+
packages: write
23+
2124
jobs:
2225
docker:
2326
name: ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
@@ -64,4 +67,4 @@ jobs:
6467
docker_registry_username: ${{ secrets.DOCKER_USERNAME }}
6568
docker_registry_password: ${{ secrets.DOCKER_PASSWORD }}
6669
github_registry_username: ${{ github.repository_owner }}
67-
github_registry_password: ${{ secrets.GITHUB_TOKEN }}
70+
github_registry_password: ${{ github.token }}

.github/workflows/_docker_manifests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ env:
1212
DOTNET_INSTALL_DIR: "./.dotnet"
1313
DOTNET_ROLL_FORWARD: "Major"
1414

15+
permissions:
16+
packages: write
17+
1518
jobs:
1619
manifest:
1720
name: ${{ matrix.docker_distro }} - net${{ matrix.dotnet_version }}
@@ -43,4 +46,4 @@ jobs:
4346
docker_registry_username: ${{ secrets.DOCKER_USERNAME }}
4447
docker_registry_password: ${{ secrets.DOCKER_PASSWORD }}
4548
github_registry_username: ${{ github.repository_owner }}
46-
github_registry_password: ${{ secrets.GITHUB_TOKEN }}
49+
github_registry_password: ${{ github.token }}

0 commit comments

Comments
 (0)