Skip to content

Audit

Audit #9

Workflow file for this run

name: Audit
on:
schedule:
# Run it every Sunday
- cron: '0 0 * * 0'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Enable yarn v4
run: |
corepack enable
yarn -v
- name: Get yarn cache directory path
id: yarn-cache-dir-path
working-directory: ./artemis-console-extension/artemis-extension
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Audit
working-directory: ./artemis-console-extension/artemis-extension
run: yarn npm audit --all