Skip to content

Instantly share code, notes, and snippets.

@KristianI
Created May 25, 2023 07:08
Show Gist options
  • Save KristianI/5e538e37c53ec2ed4ca43fc5df729260 to your computer and use it in GitHub Desktop.
Save KristianI/5e538e37c53ec2ed4ca43fc5df729260 to your computer and use it in GitHub Desktop.
GitHub workflow for Snyk
name: Snyk
on:
push:
branches: [develop]
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
# Allows us to run workflow manually from the Actions tab
workflow_dispatch:
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Snyk Code check
uses: snyk/actions/php@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: code test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment