Skip to content

Commit

Permalink
Create global-snyk-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw authored Mar 21, 2024
1 parent 2e740d4 commit 4801c08
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/global-snyk-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Snyk analysis

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches: [ master ]
paths:
- 'documentation/**'
- 'starsky/**'
- 'documentation/**'
- 'starskydesktop/**'
workflow_dispatch:

jobs:
run:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: master

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
check-latest: true

- name: 'npx -y snyk auth token'
working-directory: ./
env:
SNYK_AUTH_TOKEN: ${{ secrets.SNYK_AUTH_TOKEN }}
run: npx -y snyk auth $SNYK_AUTH_TOKEN

- name: 'npx snyk test --all-projects'
working-directory: ./
run: npx snyk test --all-projects


0 comments on commit 4801c08

Please sign in to comment.