Skip to content

Commit 6c8468a

Browse files
committed
Pass only relevant secret
1 parent d11a65b commit 6c8468a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- '.github/workflows/docker.yml'
1010
- 'Dockerfile'
1111
workflow_call:
12+
secrets:
13+
GITHUB_TOKEN:
14+
required: true
15+
description: 'GitHub token with permissions to push Docker images'
1216
inputs:
1317
tag:
1418
description: 'Docker tag'

.github/workflows/post-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118
permissions:
119119
contents: read
120120
packages: write
121-
secrets: inherit
121+
secrets:
122+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122123
with:
123124
tag: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)