Skip to content

Commit

Permalink
Legg til permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
enstulen committed Aug 15, 2023
1 parent c5edb17 commit 963b302
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ jobs:
permissions:
contents: "read"
id-token: "write"
packages: "read"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
registry-url: https://npm.pkg.github.com
scope: "@navikt"
cache: "npm"
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set environment variables
run: cp environments/${{ inputs.environment }}.env .env
- name: Build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
permissions:
contents: "read"
packages: "read"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down

0 comments on commit 963b302

Please sign in to comment.