Skip to content

Commit

Permalink
test: Improvements to CI Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 29, 2023
1 parent d1097e7 commit 793d05e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
analyze:
name: Analyze
name: Check for Vulnerabilities
runs-on: ubuntu-latest

strategy:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Snyk

on:
merge_group:
pull_request_target:
pull_request:
types:
- opened
- synchronize
Expand All @@ -13,6 +13,8 @@ on:
- cron: "30 0 1,15 * *"

permissions:
security-events: write
actions: read
contents: read

concurrency:
Expand Down Expand Up @@ -41,6 +43,13 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- uses: snyk/actions/php@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
- uses: snyk/actions/python-3.7@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif

0 comments on commit 793d05e

Please sign in to comment.