Visitar URL original
Actions: Add new models for external actions/workflows by JarLob · Pull Request #22263 · github/codeql · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
apply review suggestion
  • Loading branch information
JarLob committed Aug 4, 2026
commit 66160b7ddec0adfc41f7bedcd7a9090ac3eb0f64
9 changes: 5 additions & 4 deletions actions/ql/lib/codeql/actions/ast/internal/Ast.qll
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,11 @@ class ExpressionImpl extends AstNodeImpl, TExpressionNode {

bindingset[owner, repo, action_path]
private string externalCompositeActionName(string owner, string repo, string action_path) {
action_path.trim() = "" and result = owner.trim() + "/" + repo.trim()
or
not action_path.trim() = "" and
result = owner.trim() + "/" + repo.trim() + "/" + action_path.trim()
exists(string trimmed_path | trimmed_path = action_path.trim() |
if trimmed_path = ""
then result = owner.trim() + "/" + repo.trim()
else result = owner.trim() + "/" + repo.trim() + "/" + trimmed_path
)
}

class CompositeActionImpl extends AstNodeImpl, TCompositeAction {
Expand Down
Loading