Skip to content

Expose API_AUTH_TOKEN_GITHUB in GitHub workflows #330

Expose API_AUTH_TOKEN_GITHUB in GitHub workflows

Expose API_AUTH_TOKEN_GITHUB in GitHub workflows #330

Workflow file for this run

name: Audit NPM package
# Controls when the workflow will run
on: push
env:
TOKEN_LISTS_ACTIONS_OR_CI_BUILD: true
DAPP_RADAR_PROJECT_ID: ${{ secrets.DAPP_RADAR_PROJECT_ID }}
DAPP_RADAR_API_KEY: ${{ secrets.DAPP_RADAR_API_KEY }}
API_AUTH_TOKEN_GITHUB: ${{ secrets.API_AUTH_TOKEN_GITHUB }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
audit:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: brew install librsvg libimagequant pkg-config
- run: npm install -g yarn
- run: yarn --version
- run: yarn
- run: yarn audit