Skip to content

Commit

Permalink
Update vuln analysis GHAW to use on.push hook
Browse files Browse the repository at this point in the history
This hook is needed for proper operation of the
`Vulnerability / CodeQL` job so that it can compare
before/after changes against the base branch.

I'm opting to skip limiting the pull_request hook
events to just the base branch, instead adding a
commented directive to imply that I explicitly
made that decision.

refs atc0005/todo#56
  • Loading branch information
atc0005 committed Mar 17, 2023
1 parent 48db844 commit ea06bae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/project-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@
name: Project Analysis

on:
push:
branches: [master]

pull_request:
# `synchronized` seems to equate to pushing new commits to a linked branch
# (whether force-pushed or not)
types: [opened, synchronize]

# The branches below must be a subset of the branches above
# branches: [master]

jobs:
lint:
name: Lint
Expand Down

0 comments on commit ea06bae

Please sign in to comment.