Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Update example npm scan
Browse files Browse the repository at this point in the history
Adopt the new functionality from the Docker container Action in the example
workflow.
  • Loading branch information
nicorikken committed Jul 13, 2021
1 parent 51de969 commit 266b17b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/npm-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 266b17b

Please sign in to comment.