Skip to content

Commit 1efad3f

Browse files
authored
chore: add monitoring to github actions (#15436)
* chore: add monitoring to github actions * try this
1 parent 2d38184 commit 1efad3f

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212

1313
jobs:
1414
Tests:
15+
permissions: {}
1516
runs-on: ${{ matrix.os }}
1617
timeout-minutes: 15
1718
strategy:
@@ -41,6 +42,7 @@ jobs:
4142
env:
4243
CI: true
4344
Lint:
45+
permissions: {}
4446
runs-on: ubuntu-latest
4547
timeout-minutes: 5
4648
steps:
@@ -61,6 +63,7 @@ jobs:
6163
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail
6264
run: pnpm build && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please regenerate types locally with `cd packages/svelte && pnpm generate:types` and commit the changes after you have reviewed them"; git diff; exit 1); }
6365
Benchmarks:
66+
permissions: {}
6467
runs-on: ubuntu-latest
6568
timeout-minutes: 15
6669
steps:

.github/workflows/ecosystem-ci-trigger.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: github.repository == 'sveltejs/svelte' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
1111
steps:
12+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1213
- uses: actions/github-script@v6
1314
with:
1415
script: |

.github/workflows/pkg.pr.new-comment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
name: 'Update comment'
1212
runs-on: ubuntu-latest
1313
steps:
14+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1415
- name: Download artifact
1516
uses: actions/download-artifact@v4
1617
with:

.github/workflows/pkg.pr.new.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: [push, pull_request]
33

44
jobs:
55
build:
6+
permissions: {}
7+
68
runs-on: ubuntu-latest
79

810
steps:

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
name: Release
1818
runs-on: ubuntu-latest
1919
steps:
20+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2021
- name: Checkout Repo
2122
uses: actions/checkout@v4
2223
with:

0 commit comments

Comments
 (0)