Skip to content

Commit

Permalink
Update and rename Sparrow.yml to Compliance.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ttagu99 authored Oct 25, 2024
1 parent cd55bed commit 2108789
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 43 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Compliance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: License Compliance Check

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
snyk-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14' # Node.js 버전은 필요에 따라 변경

- name: Install Snyk CLI
run: npm install -g snyk

- name: Run Snyk License Compliance Check
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: snyk test --all-projects --severity-threshold=medium --json-file-output=snyk-results.json

- name: Upload Snyk Results
uses: actions/upload-artifact@v3
with:
name: snyk-license-results
path: snyk-results.json
43 changes: 0 additions & 43 deletions .github/workflows/Sparrow.yml

This file was deleted.

0 comments on commit 2108789

Please sign in to comment.