use new coana action #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Coana CLI | |
on: push | |
jobs: | |
# run extension unit tests | |
coana-cli: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
- name: Run npm install | |
run: npm install | |
- name: Run Coana CLI | |
id: coana-cli | |
uses: coana-tech/coana-action/vulnerability-analysis@stable | |
with: | |
apiKey: ${{ secrets.COANA_API_TOKEN }} | |
repoUrl: https://github.com/${{github.repository}} |