Skip to content

Commit

Permalink
try moving perms
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Aug 13, 2023
1 parent 168564e commit 0ad3d6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ permissions:
jobs:
validate:
uses: ./.github/workflows/verify.yml
permissions:
contents: read
id-token: write
deploy:
needs:
- validate
permissions:
contents: read
id-token: write
runs-on: ubuntu-22.04
environment: production
steps:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ on:
pull_request:
workflow_call:

permissions:
id-token: write
contents: read

jobs:
validate:
name: ${{ matrix.cmd }}
permissions:
contents: read
id-token: write
runs-on: ubuntu-22.04
environment: production
strategy:
Expand Down

0 comments on commit 0ad3d6d

Please sign in to comment.