Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

ci: harden label based browser runner

Pelle Wessman95772effd328
diff --git a/.github/workflows/browser-test.yml b/.github/workflows/browser-test.yml
index 89076943..f9535b16 100644
--- a/.github/workflows/browser-test.yml
+++ b/.github/workflows/browser-test.yml
@@ -1,9 +1,14 @@
name: Browser Tests for forked PRs
-'on':
- pull_request_target:
+
+on:
+ pull_request:
types:
- labeled
+permissions:
+ contents: read
+ pull-requests: write
+
jobs:
test-browser:
# TODO: configure to retain build artifacts in `.karma/` dir