From 24091a4055594cea24c3a9e6d6e6a199b49e58ed Mon Sep 17 00:00:00 2001 From: Hans Wustrack Date: Fri, 8 Sep 2023 15:38:23 +0000 Subject: [PATCH] Add snyk scan workflow --- .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 }}