Skip to content

Commit 583aad1

Browse files
Add least-privilege permissions to sample-test workflow (CodeQL: limit GITHUB_TOKEN)
1 parent 8111745 commit 583aad1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/sdk-sample-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
description: 'The full commit id to build'
1313
required: true
1414

15+
permissions:
16+
contents: read # checkout
17+
checks: write # github-script creates the status check
18+
1519
jobs:
1620
sdk-sample:
1721
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)