File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
test/query-tests/Security/CWE-312 Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class ActionsCheckoutStep extends Actions::Step {
2626/**
2727 * A `with:`/`persist-credentials` field sibling to `uses: actions/checkout`.
2828 */
29- class ActionsCheckoutWithPersistCredentials extends YamlNode , YamlString {
29+ class ActionsCheckoutWithPersistCredentials extends YamlNode , YamlScalar {
3030 ActionsCheckoutStep step ;
3131
3232 ActionsCheckoutWithPersistCredentials ( ) {
Original file line number Diff line number Diff line change 6262 with :
6363 name : file
6464 path : foo
65+ test7 : # NOT VULNERABLE
66+ runs-on : ubuntu-latest
67+ steps :
68+ - uses : actions/checkout@v4
69+ with :
70+ persist-credentials : false
71+ - name : " Upload artifact"
72+ uses : actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
73+ with :
74+ name : file
75+ path : .
76+ test8 : # VULNERABLE
77+ runs-on : ubuntu-latest
78+ steps :
79+ - uses : actions/checkout@v4
80+ with :
81+ persist-credentials : true
82+ - name : " Upload artifact"
83+ uses : actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
84+ with :
85+ name : file
86+ path : .
6587
Original file line number Diff line number Diff line change 1- | .github/workflows/test.yml:9:9:14:2 | name: " ... tifact" | A secret is exposed in an artifact uploaded by $@ | .github/workflows/test.yml:9:9:14:2 | name: " ... tifact" | actions/upload-artifact |
2- | .github/workflows/test.yml:27:9:32:2 | name: " ... tifact" | A secret is exposed in an artifact uploaded by $@ | .github/workflows/test.yml:27:9:32:2 | name: " ... tifact" | actions/upload-artifact |
3- | .github/workflows/test.yml:38:9:43:2 | name: " ... tifact" | A secret is exposed in an artifact uploaded by $@ | .github/workflows/test.yml:38:9:43:2 | name: " ... tifact" | actions/upload-artifact |
4- | .github/workflows/test.yml:49:9:54:2 | name: " ... tifact" | A secret is exposed in an artifact uploaded by $@ | .github/workflows/test.yml:49:9:54:2 | name: " ... tifact" | actions/upload-artifact |
1+ | .github/workflows/test.yml:9:9:14:2 | name: " ... tifact" | A secret may be exposed in an artifact. |
2+ | .github/workflows/test.yml:27:9:32:2 | name: " ... tifact" | A secret may be exposed in an artifact. |
3+ | .github/workflows/test.yml:38:9:43:2 | name: " ... tifact" | A secret may be exposed in an artifact. |
4+ | .github/workflows/test.yml:49:9:54:2 | name: " ... tifact" | A secret may be exposed in an artifact. |
5+ | .github/workflows/test.yml:82:9:86:18 | name: " ... tifact" | A secret may be exposed in an artifact. |
You can’t perform that action at this time.
0 commit comments