Update ql/src/Security/CWE-829/UnpinnedActionsTag.ql

Co-authored-by: Alvaro Muñoz <pwntester@github.com>
This commit is contained in:
Kylie Stradley
2024-11-04 11:30:29 -05:00
committed by GitHub
parent 40ec9d623d
commit 5bf02e73ea

View File

@@ -18,7 +18,7 @@ private predicate isPinnedCommit(string version) { version.regexpMatch("^[A-Fa-f
bindingset[repo]
private predicate isTrustedOrg(string repo) {
exists(string org | org in ["actions", "github", "advanced-security"] | repo.matches(org + "/%"))
repo.matches(["actions", "github", "advanced-security"] + "/%"))
}
from UsesStep uses, string repo, string version, Workflow workflow, string name