Skip to content

Commit

Permalink
💚 asset grab test 16
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 2, 2024
1 parent 0acca79 commit 3f36cfe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
15 changes: 13 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,20 @@ export async function run(): Promise<void> {
throw new Error('Unable to find the asset in the release.')
}

console.log(`Asset Download URL: ${asset.browser_download_url}`) // Debugging line

/*
await exec.exec(
`wget --auth-no-challenge --header='Accept:application/octet-stream' https://${pat}:@api.github.com/repos/vulncheck-oss/cli/releases/assets/${asset.id} -O ${asset.name}`
`wget --auth-no-challenge --header 'Authorization: token ${pat}' --header='Accept:application/octet-stream' https://api.github.com/repos/vulncheck-oss/cli/releases/assets/${asset.id} -O ${asset.name}`
)
*/

await exec.exec(`
curl -L \
-H "Accept: application/octet-stream" \

Check failure on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unnecessary escape character: \ .

Check failure on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unnecessary escape character: \ .

Check failure on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unnecessary escape character: \ .

Check failure on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unnecessary escape character: \ .

Check failure on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unnecessary escape character: \ .

Check failure on line 38 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Unnecessary escape character: \ .
-H "Authorization: Bearer ${pat}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
-o ${asset.name} \
https://api.github.com/repos/vulncheck-oss/cli/releases/assets/${asset.id}
`)

// Execute ls -la and log the output
let output = ''
Expand Down

0 comments on commit 3f36cfe

Please sign in to comment.