Skip to content

Commit

Permalink
Set contents read at job level.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhemstad committed Nov 29, 2023
1 parent 2c99d7d commit a53cdc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-and-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:

permissions:
contents: read
pull-requests: read

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/dispatch-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

permissions:
contents: read
pull-requests: read

jobs:
# Using a matrix to dispatch to the build-and-test reusable workflow for each build configuration
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
name: NVRTC CUDA${{matrix.cuda}} C++${{matrix.std}}
permissions:
id-token: write
contents: read
needs: compute-matrix
if: ${{ !contains(github.event.head_commit.message, 'skip-tests') }}
uses: ./.github/workflows/run-as-coder.yml
Expand All @@ -77,6 +78,7 @@ jobs:
name: Thrust CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }}
permissions:
id-token: write
contents: read
needs: compute-matrix
uses: ./.github/workflows/dispatch-build-and-test.yml
strategy:
Expand All @@ -94,6 +96,7 @@ jobs:
name: CUB CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }}
permissions:
id-token: write
contents: read
needs: compute-matrix
uses: ./.github/workflows/dispatch-build-and-test.yml
strategy:
Expand All @@ -111,6 +114,7 @@ jobs:
name: libcudacxx CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }}
permissions:
id-token: write
contents: read
needs: compute-matrix
uses: ./.github/workflows/dispatch-build-and-test.yml
strategy:
Expand All @@ -128,6 +132,7 @@ jobs:
name: ${{matrix.lib}} ${{matrix.cpu}}/CTK${{matrix.cuda}}/clang-cuda
permissions:
id-token: write
contents: read
needs: compute-matrix
strategy:
fail-fast: false
Expand All @@ -145,6 +150,7 @@ jobs:
name: CCCL Infrastructure
permissions:
id-token: write
contents: read
needs: compute-matrix
if: ${{ !contains(github.event.head_commit.message, 'skip-tests') }}
strategy:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/run-as-coder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:

permissions:
contents: read
pull-requests: read

jobs:
run-as-coder:
Expand Down

0 comments on commit a53cdc8

Please sign in to comment.