Skip to content

Commit 8c7f073

Browse files
committed
ci: add permission to build-base workflow
1 parent a163bfd commit 8c7f073

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/build-base.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ on:
1616
- 'task/handler.sh'
1717

1818
permissions:
19-
contents: read
19+
contents: write
20+
issues: write
21+
pull-requests: write
2022
packages: write
2123

2224
concurrency:
@@ -37,16 +39,18 @@ jobs:
3739
with:
3840
registry: ghcr.io
3941
username: ${{ github.actor }}
40-
password: ${{ secrets.GITHUB_TOKEN }}
42+
password: ${{ secrets.GHCR_PAT }}
4143

4244
- name: Build and push base
4345
run: |
46+
echo "${{ secrets.GHCR_PAT }}" > github_token
4447
docker buildx build \
4548
--platform linux/arm64 \
4649
--provenance=false \
50+
--secret id=github_token,src=github_token \
4751
--target base \
4852
--tag ghcr.io/${{ github.repository_owner }}/lambda-shell-runtime:base \
4953
--push \
5054
.
5155
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
GITHUB_TOKEN: ${{ secrets.GHCR_PAT }}

0 commit comments

Comments
 (0)