Skip to content

Commit

Permalink
Fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
unkhz committed Jul 19, 2024
1 parent af73b83 commit 14ad609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
kustomization:
required: true
type: string
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
build-base-images:
if: ${{ ! endsWith(github.event.head_commit.message, '[skip ci]') }}
needs: test
permissions:
packages: write

strategy:
matrix:
Expand All @@ -54,7 +56,7 @@ jobs:
image: ghcr.io/unkhz/ruuvipuserrin-base-node
kustomization: ./packages/base-node/.khz-k3s/kustomization.yaml

uses: unkhz/ruuvipuserrin/.github/workflows/build-package.yml@master
uses: ./.github/workflows/build-package.yml
with:
package: ${{ matrix.args.package }}
context: ${{ matrix.args.context }}
Expand All @@ -64,6 +66,8 @@ jobs:
build-package-images:
if: ${{ ! endsWith(github.event.head_commit.message, '[skip ci]') }}
needs: build-base-images
permissions:
packages: write

strategy:
matrix:
Expand All @@ -73,7 +77,7 @@ jobs:
image: ghcr.io/unkhz/ruuvipuserrin-archive
kustomization: ./packages/archive/.khz-k3s/kustomization.yaml

uses: unkhz/ruuvipuserrin/.github/workflows/build-package.yml@master
uses: ./.github/workflows/build-package.yml
with:
package: ${{ matrix.args.package }}
context: ${{ matrix.args.context }}
Expand Down

0 comments on commit 14ad609

Please sign in to comment.