Skip to content

Commit 0af2ff5

Browse files
committed
Added permissions to override repo/org settings w/ least privileges required for improved security (https://cwe.mitre.org/data/definitions/275.html)
1 parent c0c48d1 commit 0af2ff5

File tree

6 files changed

+18
-1
lines changed

6 files changed

+18
-1
lines changed

.github/workflows/lint-on-push-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Lint pushes/PRs
22
on: [push, pull_request]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58

69
js-json-md-yaml-lint:

.github/workflows/publish-latest-release-to-npm.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Publish latest release to npm
2-
32
on: workflow_dispatch
43

4+
permissions:
5+
contents: read
6+
57
jobs:
68
build:
79
runs-on: ubuntu-latest

.github/workflows/sync-chatgpt.js-changes-to-chrome-starter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [master, main]
66
paths: [chatgpt.js]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')

.github/workflows/sync-chrome-starter-changes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
paths: [starters/chrome/**]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')

.github/workflows/sync-en-readme-changes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- README.md
88
- docs/README.md
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')

.github/workflows/sync-greasemonkey-starter-changes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
paths: [starters/greasemonkey/**]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
if: (github.repository == 'KudoAI/chatgpt.js') && (github.event.commits[0].committer.username != 'kudo-sync-bot')

0 commit comments

Comments
 (0)