Skip to content

Commit 449afef

Browse files
committed
Using explicit permissions
1 parent 98a783c commit 449afef

8 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/auto-benchmark.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- "develop"
77

8+
permissions:
9+
contents: read
10+
811
env:
912
GO_VERSION: 1.26
1013
PYTHON_VERSION: 3.12

.github/workflows/go-test-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
66

7+
permissions:
8+
contents: read
9+
710
env:
811
GO_VERSION: 1.26
912

.github/workflows/header.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6+
permissions:
7+
contents: read
68
jobs:
79
check-header:
810
runs-on: ubuntu-latest

.github/workflows/json-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6+
permissions:
7+
contents: read
68
jobs:
79
json-lint:
810
runs-on: ubuntu-latest

.github/workflows/markdown-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6+
permissions:
7+
contents: read
68
jobs:
79
markdown-lint:
810
runs-on: ubuntu-latest

.github/workflows/python-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6+
permissions:
7+
contents: read
68
jobs:
79
python-lint:
810
runs-on: ubuntu-latest

.github/workflows/python-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
66

7+
permissions:
8+
contents: read
9+
710
env:
811
GO_VERSION: 1.26
912

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
default: true
1414
type: boolean
1515

16+
permissions:
17+
contents: read
18+
1619
env:
1720
GO_VERSION: 1.26
1821
PYTHON_VERSION: 3.12

0 commit comments

Comments
 (0)