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.

Revisions

  1. KristianI created this gist May 25, 2023.
    23 changes: 23 additions & 0 deletions snyk.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    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