Skip to content

Commit

Permalink
Do synk scans weekly on Sunday mornings (AcademySoftwareFoundation#1636)
Browse files Browse the repository at this point in the history
Signed-off-by: John Mertic <[email protected]>
  • Loading branch information
jmertic authored and cary-ilm committed Feb 13, 2024
1 parent 0609408 commit 231ab0b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/snyk-scan-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) Contributors to the OpenEXR Project.

name: Snyk Scan Code

on:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
schedule:
- cron: "0 4 * * 0"

jobs:
snyk-scan-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: snyk/actions/setup@master
id: snyk

- name: Snyk version
run: echo "${{ steps.snyk.outputs.version }}"

- name: Snyk Auth
run: snyk auth ${{ secrets.SNYK_TOKEN }}

- name: Snyk Scan Code
# Scan the C/C++ code for vulnerabilities using the Snyk CLI with the unmanaged flag
# https://docs.snyk.io/scan-using-snyk/supported-languages-and-frameworks/c-c++ for options
run: snyk test --unmanaged --print-dep-paths --org=${{ secrets.SNYK_ORG }}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
continue-on-error: true # optional

- name: Monitor for Vulnerabilities
# To import the test results (issues and dependencies) in the Snyk CLI, run the snyk monitor --unmanaged command:
run: snyk monitor --unmanaged --org=${{ secrets.SNYK_ORG }}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
continue-on-error: true # optional

0 comments on commit 231ab0b

Please sign in to comment.