Skip to content

Commit

Permalink
Added Security checks to the actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Jun 6, 2023
1 parent da6999f commit 32c9ee8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Security

on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.3

- uses: snyk/actions/setup@master

- name: Snyk Open Source
run: snyk test
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: Snyk Code
run: snyk code test
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit 32c9ee8

Please sign in to comment.