🐩 Snyk Test & Monitor #192
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
name: 🐩 Snyk Test & Monitor | |
on: | |
schedule: | |
# At 06:00 on every 3rd day | |
- cron: "0 6 */3 * *" | |
workflow_dispatch: | |
jobs: | |
test-and-monitor: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Snyk | |
uses: snyk/actions/setup@master | |
- name: Authenticate | |
run: snyk auth ${{ secrets.SNYK_TOKEN }} | |
- name: Dotnet restore | |
run: dotnet restore | |
- name: Update IntoRdf snapshot at Snyk.io | |
continue-on-error: true | |
working-directory: IntoRdf/obj | |
run: snyk monitor --project-name=IntoRdf | |
- name: Update IntoRdf.Cli snapshot at Snyk.io | |
continue-on-error: true | |
working-directory: IntoRdf.Cli/obj | |
run: snyk monitor --project-name=IntoRdf.Cli | |
- name: Test dependencies for known issues | |
run: snyk test --all-projects --exclude=IntoRdf.Tests |