Skip to content

Commit 3a63546

Browse files
chore: update global workflows (#205)
1 parent 3d0c6c9 commit 3a63546

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/_codeql.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
# the above-mentioned repo.
55

66
name: CodeQL
7-
permissions:
8-
actions: read
9-
contents: read
10-
security-events: write
7+
permissions: {}
118

129
on:
10+
pull_request:
1311
push:
1412
branches:
1513
- master
16-
pull_request:
1714
schedule:
1815
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
1916

@@ -26,3 +23,7 @@ jobs:
2623
name: CodeQL
2724
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
2825
if: ${{ github.repository != 'LizardByte/.github' }}
26+
permissions:
27+
actions: read
28+
contents: read
29+
security-events: write

.github/workflows/_common-lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# the above-mentioned repo.
55

66
name: common lint
7-
permissions:
8-
contents: read
7+
permissions: {}
98

109
on:
1110
pull_request:
@@ -19,3 +18,5 @@ jobs:
1918
name: Common Lint
2019
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
2120
if: ${{ github.repository != 'LizardByte/.github' }}
21+
permissions:
22+
contents: read

.github/workflows/_update-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
name: Update docs
2929
uses: LizardByte/.github/.github/workflows/__call-update-docs.yml@master
3030
if: github.repository_owner == 'LizardByte'
31+
permissions: {}
3132
with:
3233
readthedocs_slug: ${{ vars.READTHEDOCS_SLUG }}
3334
secrets:

0 commit comments

Comments
 (0)