Skip to content

Commit

Permalink
Set workflow permissions where required
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Jan 2, 2024
1 parent 8bd674c commit f1edde3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-full-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:

dependency-graph:
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
cache-key-prefix: ${{github.run_number}}-

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
dependency-graph:
needs: build-distribution
uses: ./.github/workflows/integ-test-dependency-graph.yml
permissions:
contents: write
with:
runner-os: '["ubuntu-latest"]'
download-dist: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/demo-pr-build-scan-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Demo adding Build Scan® comment to PR
on:
pull_request:
types: [assigned, review_requested]

permissions:
pull_request: write

jobs:
successful-build-with-always-comment:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integ-test-dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
type: boolean
default: false

permissions:
contents: write

env:
DOWNLOAD_DIST: ${{ inputs.download-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: dependency-graph-${{ inputs.cache-key-prefix }}
Expand Down

0 comments on commit f1edde3

Please sign in to comment.