Skip to content

Commit

Permalink
Move sanity-check-vuln-updates job
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLugo committed Dec 21, 2023
1 parent 146bac7 commit c0eecec
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/sanity-check-vuln-updates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Vulnerability updates sanity check
on:
schedule:
- cron: '5 0,4,8,12,16,20 * * *'

jobs:
sanity-check-vuln-updates:
env:
SLACK_WEBHOOK_ONCALL: ${{ secrets.SLACK_ONCALL_SCANNER_WEBHOOK }}
runs-on: ubuntu-latest
container:
image: quay.io/stackrox-io/apollo-ci:scanner-test-0.3.61
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: ./.github/actions/job-preamble

- name: sanity-check-vuln-updates
run: ./scripts/ci/jobs/sanity-check-vuln-updates.sh
2 changes: 1 addition & 1 deletion scripts/ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ send_slack_notice_for_failures_on_merge() {
}

send_slack_notice_for_vuln_check_failure() {
if ! is_OPENSHIFT_CI; then
if ! is_OPENSHIFT_CI && ! ! is_GITHUB_ACTIONS; then
return 0
fi

Expand Down

0 comments on commit c0eecec

Please sign in to comment.