mirror of
https://github.com/nais/wonderwall.git
synced 2026-02-14 17:49:54 +00:00
ci: explicitly set permissions for workflows
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -6,6 +6,8 @@ concurrency:
|
||||
env:
|
||||
GOOGLE_REGISTRY: europe-north1-docker.pkg.dev
|
||||
GITHUB_REGISTRY: ghcr.io
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -25,7 +27,6 @@ jobs:
|
||||
name: Publish to Google and GitHub registries
|
||||
if: github.ref == 'refs/heads/master'
|
||||
permissions:
|
||||
contents: "read"
|
||||
id-token: "write"
|
||||
packages: "write"
|
||||
runs-on: ubuntu-latest
|
||||
@@ -56,7 +57,6 @@ jobs:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
Reference in New Issue
Block a user