Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move snyk to cron job #2212

Merged
merged 2 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,6 @@ jobs:
- run: ./bin/run whoami
- run: ./scripts/run-acceptance

snyk:
runs-on: ubuntu-latest
environment: Snyk
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: yarn global add snyk
- run: yarn --frozen-lockfile --network-timeout 1000000
- run: snyk test --all-projects --fail-on=all
- run: snyk monitor --org=hit

# dummy job needed to pass changeling compliance because it only watches one build
done:
runs-on: macos-latest
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Snyk nightly CI check
# runs nightly at midnight

on:
schedule:
- cron: '0 0 * * *'
snyk:
runs-on: ubuntu-latest
environment: Snyk
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: yarn global add snyk
- run: yarn --frozen-lockfile --network-timeout 1000000
- run: snyk test --all-projects --fail-on=all
- run: snyk monitor --org=hit