Skip to content

Commit

Permalink
Stramme inn github token scopes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek committed Jul 4, 2023
1 parent 5389019 commit c185ce1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ on:
jobs:
build-feature:
name: Build
permissions:
contents: read
uses: navikt/fp-gha-workflows/.github/workflows/build-feature-postgres.yml@main
with:
postgres-user: unittest
sonar-scan: true # default: false
secrets: inherit

release-drafter:
name: Update
permissions:
contents: write
pull-requests: read
if: github.ref_name == 'master'
needs: build-feature
uses: navikt/fp-gha-workflows/.github/workflows/release-drafter.yml@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
release:
name: Feature
permissions:
packages: write
uses: navikt/fp-gha-workflows/.github/workflows/release-feature.yml@main
with:
release-version: ${{ github.event.release.tag_name }}
Expand Down

0 comments on commit c185ce1

Please sign in to comment.