Skip to content

Commit

Permalink
Merge pull request openshift#390 from yuumasato/grant-metal-toolbox-w…
Browse files Browse the repository at this point in the history
…orkflow-permissions

Grant permissions required metal-toolbox workflow
  • Loading branch information
yuumasato committed Aug 25, 2023
2 parents 2f80e23 + 3b8560d commit cd3744f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
jobs:
# Push to latest
operator-container-push-latest:
permissions:
contents: read
id-token: write
packages: write
uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
with:
name: compliance-operator
Expand All @@ -16,6 +20,10 @@ jobs:
vendor: 'Compliance Operator Authors'

bundle-container-push-latest:
permissions:
contents: read
id-token: write
packages: write
uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
with:
name: compliance-operator-bundle
Expand All @@ -25,6 +33,10 @@ jobs:
vendor: 'Compliance Operator Authors'

openscap-container-push-latest:
permissions:
contents: read
id-token: write
packages: write
uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
with:
name: openscap-ocp
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:

jobs:
container-main:
permissions:
contents: read
id-token: write
packages: write
uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
with:
name: compliance-operator
Expand All @@ -16,6 +20,10 @@ jobs:
vendor: 'Compliance Operator Authors'

bundle-container:
permissions:
contents: read
id-token: write
packages: write
uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
with:
name: compliance-operator-bundle
Expand Down

0 comments on commit cd3744f

Please sign in to comment.