2021-06-04 23:43:01 +02:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: Snyk scan
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
# https://github.com/snyk/actions/tree/master/php
|
|
|
|
snyk-php:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-10 05:02:26 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-05 08:10:12 +02:00
|
|
|
- name: Install Google Cloud Storage
|
2021-06-05 08:25:19 +02:00
|
|
|
run: composer require --no-update google/cloud-storage && composer update --no-dev
|
2021-06-04 23:43:01 +02:00
|
|
|
- name: Run Snyk to check for vulnerabilities
|
|
|
|
uses: snyk/actions/php@master
|
|
|
|
continue-on-error: true # To make sure that SARIF upload gets called
|
|
|
|
env:
|
|
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
|
|
with:
|
|
|
|
args: --sarif-file-output=snyk.sarif
|
|
|
|
- name: Upload result to GitHub Code Scanning
|
2022-04-28 19:47:28 +02:00
|
|
|
uses: github/codeql-action/upload-sarif@v2
|
2021-06-04 23:43:01 +02:00
|
|
|
with:
|
|
|
|
sarif_file: snyk.sarif
|