Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Allow the trusted CLA workflow trigger

Manav Rathi4f3148ee2396
diff --git a/.github/checks/workflow-security/check.rb b/.github/checks/workflow-security/check.rb
index c9ba6d9bc1..39ea929968 100644
--- a/.github/checks/workflow-security/check.rb
+++ b/.github/checks/workflow-security/check.rb
@@ -73,7 +73,7 @@ unpinned_violations = []
checked_files.each do |path|
facts = workflow_facts(path)
facts[:triggers].each do |trigger|
- next if path == ".github/workflows/pr-approval.yml" && trigger == "pull_request_target"
+ next if %w[.github/workflows/cla.yml .github/workflows/pr-approval.yml].include?(path) && trigger == "pull_request_target"
trigger_violations << "#{path}: #{trigger}"
end