pantry/projects/snyk.io/package.yml
2024-02-21 13:23:06 -05:00

33 lines
667 B
YAML

distributable:
url: https://registry.npmjs.org/snyk/-/snyk-{{version}}.tgz
strip-components: 1
versions:
npm: snyk
dependencies:
nodejs.org: ^20
build:
dependencies:
npmjs.com: ^10
script:
- npm i $ARGS .
- run: ln -s ../libexec/bin/snyk snyk
working-directory: '{{prefix}}/bin'
env:
ARGS:
- -ddd
- --global
- --build-from-source
- --prefix={{prefix}}/libexec
- --install-links
- --unsafe-perm
provides:
- bin/snyk
test:
- snyk version | grep {{version}}
- snyk auth test > out.log || true
- cat out.log | grep 'Authentication failed. Please check the API token on https://snyk.io'