Skip to content

Commit 4e89f55

Browse files
authored
set workflow permissions
1 parent 71e1a9b commit 4e89f55

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/tests.yml

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ on:
44

55
name: Test examples without nix
66

7+
# this cancels workflows currently in progress if you start a new one
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
# Do not add permissions here! Configure them at the job level!
13+
permissions: {}
14+
715
jobs:
816
test-examples:
917
runs-on: ${{ matrix.operating-system }}

.github/workflows/tests_nix.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ on:
22
pull_request:
33
workflow_dispatch:
44

5+
name: Test examples on Nix
6+
57
# this cancels workflows currently in progress if you start a new one
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
810
cancel-in-progress: true
911

10-
name: Test examples on Nix
12+
# Do not add permissions here! Configure them at the job level!
13+
permissions: {}
1114

1215
jobs:
1316
test-examples:

0 commit comments

Comments
 (0)