mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 00:29:09 +08:00
add a comment
This commit is contained in:
parent
7fa864a4f4
commit
6cf4fbcef8
@ -124,7 +124,7 @@ const mockGetArtifactFailure = jest.fn(() => {
|
|||||||
const mockGetArtifactMalicious = jest.fn(() => {
|
const mockGetArtifactMalicious = jest.fn(() => {
|
||||||
const message = new http.IncomingMessage(new net.Socket())
|
const message = new http.IncomingMessage(new net.Socket())
|
||||||
message.statusCode = 200
|
message.statusCode = 200
|
||||||
message.push(fs.readFileSync(path.join(__dirname, 'fixtures', 'evil.zip')))
|
message.push(fs.readFileSync(path.join(__dirname, 'fixtures', 'evil.zip'))) // evil.zip contains files that are formatted x/../../etc/hosts
|
||||||
message.push(null)
|
message.push(null)
|
||||||
return {
|
return {
|
||||||
message
|
message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user