From 266b17b8e01f17841d765b04f68e50ed5e9817e5 Mon Sep 17 00:00:00 2001 From: Nico Rikken Date: Tue, 13 Jul 2021 20:12:50 +0200 Subject: [PATCH] Update example npm scan Adopt the new functionality from the Docker container Action in the example workflow. --- examples/npm-scan.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/npm-scan.yml b/examples/npm-scan.yml index 37def49..a4ecefe 100644 --- a/examples/npm-scan.yml +++ b/examples/npm-scan.yml @@ -25,13 +25,19 @@ jobs: registry-url: https://npm.pkg.github.com scope: '@mycorp' + - name: Copy set global .npmrc from root to a project path + shell: bash + run: | + cp $NPM_CONFIG_USERCONFIG ${{ github.workspace }}/.npmrc + - name: License scanning uses: alliander-opensource/license-scan-action@main with: - config-dir: ort-config # run-evaluate: false env: + NODE_CONFIG_USERCONFIG: '/github/workspace/.npmrc' NODE_AUTH_TOKEN: ${{secrets.ALL_PACKAGE_TOKEN}} + ORT_CONFIG_DIR: '/github/workspace/ort-config/' - name: Store results uses: actions/upload-artifact@v2