You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+57-29Lines changed: 57 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,49 +1,81 @@
1
1
name: CI
2
-
# SECURITY NOTE: This workflow uses pull_request_target which has access to secrets.
3
-
# This is needed because tests require access to external services with credentials.
4
-
# `pull_request_target` will always run without manual approval, even if "Require approval for all external contributors" is enabled in the repo settings.
5
-
# Therefore we implement a "safe to test" label that must be manually added once we have checked that the diff is safe.
6
-
# For PRs from forks, secrets are only provided when the "safe to test" label is present.
7
-
# This allows maintainers to safely test external contributions while preventing
8
-
# malicious actors from accessing secrets.
2
+
# SECURITY: Uses environment protection for external PRs instead of unsafe "safe to test" labels.
3
+
# Environment protection provides secure manual approval tied to specific commits,
4
+
# eliminating race conditions and ensuring maintainer review before secrets access.
0 commit comments