Skip to content

Commit a7d6e56

Browse files
committed
Fix ql-format for HardcodedContainerCredentials
1 parent cb0418d commit a7d6e56

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

actions/ql/src/experimental/Security/CWE-798/HardcodedContainerCredentials.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ private import codeql.actions.ast.internal.Ast
2323
YamlScalar getAHardcodedPassword(LocalJobImpl job, string context) {
2424
exists(YamlMapping creds |
2525
// Job-level container credentials
26-
creds =
27-
job.getNode().lookup("container").(YamlMapping).lookup("credentials") and
26+
creds = job.getNode().lookup("container").(YamlMapping).lookup("credentials") and
2827
context = "container"
2928
or
3029
// Service-level container credentials

0 commit comments

Comments
 (0)