Skip to content

Commit c36e940

Browse files
committed
ci: add permissions and concurrency to GitHub Actions workflows
- Add contents: read permission to benchmark.yml and sanitizers.yml - Add concurrency configuration to prevent redundant workflow runs - Improve CI security and resource efficiency
1 parent fe99559 commit c36e940

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
916
env:
1017
BUILD_TYPE: Release
1118

.github/workflows/sanitizers.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
916
jobs:
1017
asan:
1118
name: AddressSanitizer

0 commit comments

Comments
 (0)