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 eb2ef1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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 eb2ef1c

Please sign in to comment.