Skip to content

Commit

Permalink
💚 asset grab test 19
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 2, 2024
1 parent 7788de8 commit 715ef8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 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.

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

console.log(asset)

/*
await exec.exec(
`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" -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 715ef8d

Please sign in to comment.