From 76ddac304f7f5d399a19f55d3f425701883efb26 Mon Sep 17 00:00:00 2001 From: Hans Wustrack <109826752+hansatgoogle@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:05:24 -0600 Subject: [PATCH] Add snyk scan workflow (#1223) --- .github/workflows/snyk.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/snyk.yml diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml new file mode 100644 index 000000000..725a7c735 --- /dev/null +++ b/.github/workflows/snyk.yml @@ -0,0 +1,30 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Snyk + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 0' # each Sunday at 12:00 AM UTC + +jobs: + snyk: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run Snyk to check for vulnerabilities + uses: snyk/actions/golang@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}