From b4b4c2fe5671b4ff09c185d03f75bc04194be9e9 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Wed, 21 Feb 2024 18:11:22 +0200 Subject: [PATCH] new file: projects/snyk.io/package.yml --- projects/snyk.io/package.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 projects/snyk.io/package.yml diff --git a/projects/snyk.io/package.yml b/projects/snyk.io/package.yml new file mode 100644 index 00000000..54f3c2b1 --- /dev/null +++ b/projects/snyk.io/package.yml @@ -0,0 +1,33 @@ +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'