Skip to content

Commit e3b00ba

Browse files
committed
chore: sets explicit permissions to actions
1 parent 02f89d4 commit e3b00ba

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818

1919
name: CI Checks
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
ci:
2326
name: CI

.github/workflows/publish-pkg-canary.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ on:
1717
description: "Specific version to publish (e.g., 1.2.3)"
1818
required: true
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
publish:
2225
runs-on: ubuntu-latest
23-
# The permissions block is removed as no step needs write access to the repository.
2426

2527
steps:
2628
- name: Checkout code 🛎️

.github/workflows/publish-pkg-latest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ on:
1010
description: "Relative path to the package directory (e.g., misc/heartbeat)"
1111
required: true
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
publish:
1518
runs-on: ubuntu-latest
16-
# The permissions block is removed as no step needs write access to the repository.
1719

1820
steps:
1921
- name: Checkout code 🛎️

0 commit comments

Comments
 (0)