Skip to content

Commit 3a13a21

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 075679d commit 3a13a21

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

+3
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/sync-changes-to-chatgpt.js.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [main]
66
paths: ["**", "!.*", "!package*.json", "!eslint.config*"]
77

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

0 commit comments

Comments
 (0)