Skip to content

Commit 99fc21e

Browse files
committed
Moved workflow permissions to job level
1 parent 26be1bd commit 99fc21e

18 files changed

Lines changed: 37 additions & 54 deletions

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

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

4-
permissions:
5-
contents: read
6-
74
jobs:
85

96
eslint:
107
name: ESLint
118
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
1212
steps:
1313

1414
- name: Checkout repository code

.github/workflows/sync-amazongpt-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/amazongpt/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-autoclear-chatgpt-history-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/autoclear-chatgpt-history/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-bravegpt-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/bravegpt/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-bump-script-changes-to-ai-web.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [utils/bump/chatbots.js, utils/bump/resources.js]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
sync-bump-scripts:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-changes-to-gitlab.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ on:
44
push:
55
branches: [master]
66

7-
permissions:
8-
contents: read
9-
107
jobs:
118
build:
129
if: (github.repository == 'adamlui/userscripts')
1310
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1413
env:
1514
TZ: PST8PDT
1615

.github/workflows/sync-chatgpt-auto-continue-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/chatgpt-auto-continue/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-chatgpt-auto-refresh-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/chatgpt-auto-refresh/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-chatgpt-auto-talk-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/chatgpt-auto-talk/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

.github/workflows/sync-chatgpt-infinity-changes-to-repos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
branches: [master]
66
paths: [chatgpt/chatgpt-infinity/**]
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
build:
1310
if: (github.repository == 'adamlui/userscripts') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
1411
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
1514
env:
1615
TZ: PST8PDT
1716

0 commit comments

Comments
 (0)