Skip to content

Commit 5efe412

Browse files
committed
chore: add GITHUB_TOKEN to container workflow
Included the GITHUB_TOKEN in the environment variables to ensure proper authentication for container image operations. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent bae0107 commit 5efe412

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/container.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
# - "**.yaml"
1313
env:
1414
PLATFORMS: linux/amd64,linux/arm64,linux/ppc64le
15+
GITHUB_TOKEN: ${{ secrets.GH_APPS_TOKEN }}
1516

1617
jobs:
1718
build-and-push-image:
@@ -39,6 +40,7 @@ jobs:
3940
shell: bash
4041
run: |
4142
set -x
43+
echo ${GITHUB_TOKEN} >> /tmp/foo
4244
releaseBranchFormat='release-v'
4345
if [[ ${{ github.ref_name }} == ${releaseBranchFormat}* ]]; then
4446
tag=v$(echo ${{ github.ref_name }}|sed "s,${releaseBranchFormat},,")

0 commit comments

Comments
 (0)