Skip to content

Commit 0352c92

Browse files
chore: update global workflows (#30)
1 parent 2063f63 commit 0352c92

4 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/_ci-node.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
# This will run standard CI for Node.js/npm/TypeScript projects.
99

1010
name: CI-Node
11-
permissions:
12-
contents: write # required for release_setup action
11+
permissions: {}
1312

1413
on:
14+
pull_request:
1515
push:
1616
branches:
1717
- master
18-
pull_request:
1918

2019
concurrency:
2120
group: "${{ github.workflow }}-${{ github.ref }}"
@@ -26,6 +25,8 @@ jobs:
2625
name: CI-Node
2726
uses: LizardByte/.github/.github/workflows/__call-ci-node.yml@master
2827
if: ${{ github.repository != 'LizardByte/.github' }}
28+
permissions:
29+
contents: write # required for release_setup action
2930
secrets:
3031
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3132
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.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-npm.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
# Update NPM packages on release events.
99

1010
name: Update NPM
11-
permissions:
12-
contents: read
13-
id-token: write # required for provenance and OIDC
14-
packages: write
11+
permissions: {}
1512

1613
on:
1714
release:
@@ -27,5 +24,9 @@ jobs:
2724
name: Update NPM
2825
uses: LizardByte/.github/.github/workflows/__call-update-npm.yml@master
2926
if: github.repository_owner == 'LizardByte'
27+
permissions:
28+
contents: read
29+
id-token: write # required for provenance and OIDC
30+
packages: write
3031
with:
3132
release_version: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)