Skip to content

Commit

Permalink
Merge pull request #108 from snyk/fix/github-graphql-regex
Browse files Browse the repository at this point in the history
fix: incorrect regex for github graphql validation filter
  • Loading branch information
adrukh authored Feb 25, 2018
2 parents 4965b13 + fe6b3b1 commit bc57db4
Show file tree
Hide file tree
Showing 12 changed files with 172 additions and 188 deletions.
2 changes: 1 addition & 1 deletion client-templates/github/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
{
"//": "query for all the file names 2 levels deep in the repo. used for auto project detection",
"path": "query",
"regex": "{\\s*repositoryOwner\\(login:\\s*\"([a-zA-Z0-9-_.]+)\"\\)\\s*{\\s*repository\\(name:\\s*\"([a-zA-Z0-9-_.]+)\"\\)\\s*{\\s*object\\(expression:\\s*\"([a-zA-Z0-9-_./:]+)\"\\)\\s*{\\s*\\.\\.\\.\\s*on\\s+Tree\\s+{\\s*entries\\s*{\\s*name\\s+type\\s+object\\s*{\\s*\\.\\.\\.\\s*on\\s+Tree\\s+{\\s*entries\\s*{\\s*name\\s+type\\s+object\\s*{\\s*\\.\\.\\.on\\s+Tree\\s*{\\s*entries\\s*{\\s*name\\s+type\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}"
"regex": "{\\s*repositoryOwner\\(login:\\s*\"([a-zA-Z0-9-_.]+)\"\\)\\s*{\\s*repository\\(name:\\s*\"([a-zA-Z0-9-_.]+)\"\\)\\s*{\\s*object\\(expression:\\s*\"([a-zA-Z0-9-_./:]+)\"\\)\\s*{\\s*\\.\\.\\.\\s*on\\s+Tree\\s+{\\s*entries\\s*{\\s*name\\s+type\\s+object\\s*{\\s*\\.\\.\\.\\s*on\\s+Tree\\s+{\\s*entries\\s*{\\s*name\\s+type\\s+object\\s*{\\s*\\.\\.\\.\\s*on\\s+Tree\\s*{\\s*entries\\s*{\\s*name\\s+type\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}\\s*}"
}
]
}
Expand Down
40 changes: 18 additions & 22 deletions test/fixtures/certs/ca/my-root-ca.crt.pem
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIEGDCCAwCgAwIBAgIJAJq8QHkEg5o5MA0GCSqGSIb3DQEBBQUAMGUxCzAJBgNV
BAYTAlVTMQ0wCwYDVQQIEwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEjMCEGA1UEChMa
SW50ZXJuYWwgU2lnbmluZyBBdXRob3JpdHkxEjAQBgNVBAMTCWxvY2FsaG9zdDAe
Fw0xNjEwMTExMjIxNTZaFw0xOTA4MDExMjIxNTZaMGUxCzAJBgNVBAYTAlVTMQ0w
CwYDVQQIEwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEjMCEGA1UEChMaSW50ZXJuYWwg
U2lnbmluZyBBdXRob3JpdHkxEjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBANI3e2jhyAoQOtenmDgqMaulDbd6LxB54+2H
EBZ94868s563HZfW1i9a322Njl8Z8Zs7Hp6X8NANtJeOjbOdocKV7UZ7mhiCirlE
1TeulfwgPbbDdjQ4QSCengESBdi1ai1Iy+bSxC8RX4xiRP1vEgUlsIEj50rQWjvq
NU9B+k0jwrfSYWSFz4OPL6p2kCKne8A34smpL02yaEcdkgy6d0joV4ggPMqv17cV
0WEr74pO+f/bFZD9IObrHibtp7GPdPmxK4bofNqPaVxXfp5BXp1TaNZhLwRBgVjT
tK7nU46A9TXMZ59vk9g3vv+fCCPy1s1d6/wRMso9yHj6hfResosCAwEAAaOByjCB
xzAdBgNVHQ4EFgQUnX++qBGyUBIpJkfIuYLAkS441rwwgZcGA1UdIwSBjzCBjIAU
nX++qBGyUBIpJkfIuYLAkS441ryhaaRnMGUxCzAJBgNVBAYTAlVTMQ0wCwYDVQQI
EwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEjMCEGA1UEChMaSW50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C
SQGEZHxDLDNq5H77RHd6Ceyjcm4SkIQw7K+5npmxEQKOHdn2UZR18ZA44OiWgQuF
IupTEcBGhRuRwHjK/F0qZyZsK5M+5TF752SXDTo0/qXAS3FrJ5+0oS0iRd25SkNC
Nu50btNa8eNLbjDFfeLQhbFFafrxxJzwH4wKCGLv271TAgMBAAEwDQYJKoZIhvcN
AQELBQADggEBAAdrSCb8XZgEJWdmXab3dBhdQwG9T4hnr3pl2hu7S0WBC4F3bsEy
IN0PCBzxV+hwbtyiMmJbsCppQ/UheFdfL4gjOivT5hlSLR7YEIpDZaQlNDtBTG+9
FWk5txdkxs/JLae4hqVu7yt0vtc100dWPgN5biSkcDFTosn06yZroCnPiXP4BJjr
yabPBuRLF9KzSAt1UISd5kwbS+uiJL2C0E/DwCLHiEYFe/AvyzEndBmAbZSQZ/ov
XrCucH4Vm9Amoiq6V9Xn9Yw7KrYZb7iVntHdgEbRYGDDxdhpJyamqm//zeCv/Wsr
XST74FCCWkLfgVBj0B/mc8WZjUxSMZgfMJA=
-----END CERTIFICATE-----
50 changes: 25 additions & 25 deletions test/fixtures/certs/ca/my-root-ca.key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA0jd7aOHIChA616eYOCoxq6UNt3ovEHnj7YcQFn3jzryznrcd
l9bWL1rfbY2OXxnxmzsenpfw0A20l46Ns52hwpXtRnuaGIKKuUTVN66V/CA9tsN2
NDhBIJ6eARIF2LVqLUjL5tLELxFfjGJE/W8SBSWwgSPnStBaO+o1T0H6TSPCt9Jh
ZIXPg48vqnaQIqd7wDfiyakvTbJoRx2SDLp3SOhXiCA8yq/XtxXRYSvvik75/9sV
kP0g5useJu2nsY90+bErhuh82o9pXFd+nkFenVNo1mEvBEGBWNO0rudTjoD1Ncxn
n2+T2De+/58II/LWzV3r/BEyyj3IePqF9F6yiwIDAQABAoIBAHBEISxKKEL3l/VE
FA8quYwpgcHTBv+NmSR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lcTxVY5D454mh223CHrE
5fDOwfjlebATTIO3LJNgV1TXUS7Ve7e9mK5KCutZEyQjHjyKcQs4t7uOFzKXumWI
W0ZcQEIvR+WWnGMtv2ZhfEjBjB2KEQPM2l0qLK8CgYEAwy22MsVNNAQA4qdd1HF+
+7QhntmW350u/RfLPLTfiXwb8AsCwsnHtH9MRt0NP0Y0cZi2VBFzBRQUqlvRl+/V
fhEgunfrbaDkylCEzpjd921swotUwTVT9Dd+7WpO6LerNEWeeJCldBat1j23Vt3F
zmIbDCXOuLCZ0N4tOEw5mVkCgYBpL26FgA+0rgRym5gdgLXuCOQvWtwNpOJ5equV
mnFWZswJHX8X2xzgyhaG8XhHZReO1yfNYaMzweseuvRkQ6gX6LkYBx9uGqknN5M6
PmIrekLitF8djRRH1DCvTqZEW9JHIf5+ltCKavVIh8nZmeBCIK+ZaAFN8qssAgMk
KlRMJQKBgGEAu01vrfooXKbQjEmYSOokw0XWHQInAhn1ct5dUXXb9pF77E9ZTwhV
2AXrkZmciDh7k+pkftzzC2bXdHIEodiqe7GQVOeVpc2+JssVqfzu0OgcaC4fbuDm
fitOSWtiewpaJaEhHKNstHrP0sP3hIhq/uKRiZIM3EaSR2i8Ihfu
-----END RSA PRIVATE KEY-----
40 changes: 18 additions & 22 deletions test/fixtures/certs/client/chain.pem
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIEGDCCAwCgAwIBAgIJAJq8QHkEg5o5MA0GCSqGSIb3DQEBBQUAMGUxCzAJBgNV
BAYTAlVTMQ0wCwYDVQQIEwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEjMCEGA1UEChMa
SW50ZXJuYWwgU2lnbmluZyBBdXRob3JpdHkxEjAQBgNVBAMTCWxvY2FsaG9zdDAe
Fw0xNjEwMTExMjIxNTZaFw0xOTA4MDExMjIxNTZaMGUxCzAJBgNVBAYTAlVTMQ0w
CwYDVQQIEwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEj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EYFe/AvyzEndBmAbZSQZ/ov
XrCucH4Vm9Amoiq6V9Xn9Yw7KrYZb7iVntHdgEbRYGDDxdhpJyamqm//zeCv/Wsr
XST74FCCWkLfgVBj0B/mc8WZjUxSMZgfMJA=
-----END CERTIFICATE-----
14 changes: 7 additions & 7 deletions test/fixtures/certs/client/pubkey.pem
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA77j88dFqCJiXgigrQAYR
2lt2tlRQqmTo+H/YYwFK0epuaAhVF4qzhoN3pcdbhaVL9+FRLl4DTKq3GtQId6lk
Rf927x/QYfA0FFDZWopg8aQUuC7ka30J8F01xG1/fw0wfMYziE8eQ/p+5sP1O18x
0E4stOL+IM+DltC4vFqis6fpirzWU90Fk23oUh9vJF0Yc8PA4pWm24dBnjYxkT2D
Z+uieI2fXvRf8Yurik0UMPDO+WsOTR1xRVScuDKnq9gePAY6nReUcxX6XcShKEjz
lYeMQca9KFOxYIb6B+DqBQ5SVJnFL2rtWmErL2h+QgU4OV56IVv4IDrDSWR5Wftd
hwIDAQAB
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8j/Bw25w5WuaY26OzdqG
OIeYmBhKLtm79dBAVAPqnz02uSHI2kyioIyqoJdt4AyudTVEOs5209HHEAYwWlEw
rx034/MjXxd7iWf+gDfio0NSKVtMKc1f2Chi3wfeDa50Xro4BSSDemq6KUQk4grf
FT8lH5aDcbCr2MZsGFYrNMwhEvDq944KZ5lyIcChrrOOT0JVDk7R+4x92ClFx4hu
iDLjI1i0VllJodIcE2kBTeClV0HM/5tG/P643KOYa+gmjv99CKqfhhxQzMkSopRq
bhR6UvIKG4dP4SlKegzGLy6lTp1bmsA/pIkRslAYCExgQiW90Snu6whc7XZZtm7v
+wIDAQAB
-----END PUBLIC KEY-----
4 changes: 2 additions & 2 deletions test/fixtures/certs/generate-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ openssl req \
-new \
-nodes \
-key ca/my-root-ca.key.pem \
-days 1024 \
-days 3650 \
-out ca/my-root-ca.crt.pem \
-subj "/C=US/ST=Utah/L=Provo/O=Internal Signing Authority/CN=${FQDN}"

Expand All @@ -41,7 +41,7 @@ openssl x509 \
-CAkey ca/my-root-ca.key.pem \
-CAcreateserial \
-out server/cert.pem \
-days 500
-days 3650

# Create a public key, for funzies
# see https://gist.github.com/coolaj86/f6f36efce2821dfb046d
Expand Down
36 changes: 18 additions & 18 deletions test/fixtures/certs/server/cert.pem
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDOTCCAiECCQDeQUEpn9zznTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQGEwJV
UzENMAsGA1UECBMEVXRhaDEOMAwGA1UEBxMFUHJvdm8xIzAhBgNVBAoTGkludGVy
bmFsIFNpZ25pbmcgQXV0aG9yaXR5MRIwEAYDVQQDEwlsb2NhbGhvc3QwHhcNMTYx
MDExMTIyMTU2WhcNMTgwMjIzMTIyMTU2WjBYMQswCQYDVQQGEwJVUzENMAsGA1UE
CBMEVXRhaDEOMAwGA1UEBxMFUHJvdm8xFjAUBgNVBAoTDUFDTUUgVGVjaCBJbmMx
EjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBAO+4/PHRagiYl4IoK0AGEdpbdrZUUKpk6Ph/2GMBStHqbmgIVReKs4aDd6XH
W4WlS/fhUS5eA0yqtxrUCHepZEX/du8f0GHwNBRQ2VqKYPGkFLgu5Gt9CfBdNcRt
f38NMHzGM4hPHkP6fubD9TtfMdBOLLTi/iDPg5bQuLxaorOn6Yq81lPdBZNt6FIf
byRdGHPDwOKVptuHQZ42MZE9g2froniNn170X/GLq4pNFDDwzvlrDk0dcUVUnLgy
p6vYHjwGOp0XlHMV+l3EoShI85WHjEHGvShTsW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+bRvz+uNyj
mGvoJo7/fQiqn4YcUMzJEqKUam4UelLyChuHT+EpSnoMxi8upU6dW5rAP6SJEbJQ
GAhMYEIlvdEp7usIXO12WbZu7/sCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEAS+ek
+g+GXsO7cJQR3A6LUzQTbpvUJmj9jkkggloB2gL3fcy09/QXadStYTaJltZaUJwO
m+xQkdCtVDKIY429QmxSP9431AtzEocHiGJ2raZKoFpnTmXoep2mVsXAkqgX0Aso
Xg1ae0nM9XmMl5Y2h+D0KxlDfNfkMAwbyIhZcVC2qtuS0IJcnJd7eY6SJlGBGq7x
QixlwZr+3/k6IM9z+em8tMj9VL/iEPId0C/YMajNrBKfdVXYq6CLs3uGo8TqQdy8
OQniaZ4YkCBJ1iwe3zn5vdx4eF3TC5ilvZmL6F4kL8a8G2bPFj0jRNiYTkvs12mv
0nDAVhPg8iaepKxvYQ==
-----END CERTIFICATE-----
40 changes: 18 additions & 22 deletions test/fixtures/certs/server/chain.pem
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIEGDCCAwCgAwIBAgIJAJq8QHkEg5o5MA0GCSqGSIb3DQEBBQUAMGUxCzAJBgNV
BAYTAlVTMQ0wCwYDVQQIEwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEjMCEGA1UEChMa
SW50ZXJuYWwgU2lnbmluZyBBdXRob3JpdHkxEjAQBgNVBAMTCWxvY2FsaG9zdDAe
Fw0xNjEwMTExMjIxNTZaFw0xOTA4MDExMjIxNTZaMGUxCzAJBgNVBAYTAlVTMQ0w
CwYDVQQIEwRVdGFoMQ4wDAYDVQQHEwVQcm92bzEjMCEGA1UEChMaSW50ZXJuYWwg
U2lnbmluZyBBdXRob3JpdHkxEjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBANI3e2jhyAoQOtenmDgqMaulDbd6LxB54+2H
EBZ94868s563HZfW1i9a322Nj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