mirror of
https://github.com/github/codeql.git
synced 2026-01-01 16:56:33 +01:00
Update ql/src/Security/CWE-829/UnpinnedActionsTag.ql
Co-authored-by: Alvaro Muñoz <pwntester@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user