Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Handle shorthand uses refs in workflow check

Neeraj Gupta37c4ca2cfcfa
diff --git a/.github/workflows/security-check-workflows.yml b/.github/workflows/security-check-workflows.yml
index 092dd4b788..2818031d4f 100644
--- a/.github/workflows/security-check-workflows.yml
+++ b/.github/workflows/security-check-workflows.yml
@@ -75,7 +75,7 @@ jobs:
FULL_SHA = /\A[0-9a-f]{40}\z/
refs = STDIN.read.scan(
- /^\s*uses:\s*([A-Za-z0-9._-]+\/[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._\/-]+)?)@([^\s#]+)/
+ /^\s*-?\s*uses:\s*([A-Za-z0-9._-]+\/[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._\/-]+)?)@([^\s#]+)/
)
refs.each do |action, ref|
next if action.start_with?("actions/")