Skip to content

Commit 53a7851

Browse files
committed
Actions: address lockfile review feedback
1 parent ff9bf5d commit 53a7851

4 files changed

Lines changed: 3 additions & 2 deletions

File tree

actions/ql/lib/codeql/actions/Lock.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ private import codeql.actions.ast.internal.Yaml
99
class ActionsLock extends YamlDocument, YamlMapping {
1010
ActionsLock() { this.getFile().getRelativePath() = ".github/workflows/actions.lock" }
1111

12+
pragma[nomagic]
1213
private predicate pins0(string workflowPath, string pinnedNwo, string ref) {
1314
exists(YamlSequence workflowPins, YamlScalar pinNode, YamlMapping dependency, string pin |
1415
this.lookup("workflows").(YamlMapping).lookup(workflowPath) = workflowPins and

actions/ql/test/library-tests/actions-lock/actions.lock renamed to actions/ql/test/library-tests/actions-lock/.github/workflows/actions.lock

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: actions.lock
1+
semmle-extractor-options: --file-type YAML .github/workflows/actions.lock
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| actions.lock:0:0:0:0 | actions.lock |
1+
| .github/workflows/actions.lock:0:0:0:0 | .github/workflows/actions.lock |

0 commit comments

Comments
 (0)