Skip to content

Commit e13332e

Browse files
Set Least Permission
Set explicit least permission so that future permission changes don't affect us as well as remove any other permissions that may be present in the token.
1 parent fce2e5a commit e13332e

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/Lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
# Operating system filter for the runners
2525
runs-on: ubuntu-latest
2626

27+
# Set explicit least permission
28+
permissions:
29+
contents: read
30+
2731
steps:
2832
# Checks-out your repository under $GITHUB_WORKSPACE
2933
- uses: actions/checkout@v5

.github/workflows/NPM-Publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
# Configures the filter for which operating system that should be used when selecting runners
1818
runs-on: ubuntu-latest
1919

20+
# Set explicit least permission
21+
permissions:
22+
contents: read
23+
2024
# Set of commands to run for the build job
2125
steps:
2226
# Checks-out your repository under $GITHUB_WORKSPACE

.github/workflows/Unit-Test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
# Operating system filter for the runners
2525
runs-on: ubuntu-latest
2626

27+
# Set explicit least permission
28+
permissions:
29+
contents: read
30+
2731
steps:
2832
# Checks-out your repository under $GITHUB_WORKSPACE
2933
- name: Clone Repo

0 commit comments

Comments
 (0)