Skip to content

Commit 8581d3c

Browse files
committed
Moved workflow permissions to job level
1 parent ed11758 commit 8581d3c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.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-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 == 'awesome-scripts/awesome-userscripts')
1310
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1413
env:
1514
TZ: PST8PDT
1615

0 commit comments

Comments
 (0)