Skip to content

Commit

Permalink
Improve codeql (#349)
Browse files Browse the repository at this point in the history
* Added a security events permission

Signed-off-by: Joss Sparkes <joss.sparkes@gmail.com>

* Added push to branch for code analysis steps

Signed-off-by: Joss Sparkes <joss.sparkes@gmail.com>

Signed-off-by: Joss Sparkes <joss.sparkes@gmail.com>
  • Loading branch information
RemakingEden committed Aug 19, 2022
1 parent e04bd36 commit 7eb730b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ name: CodeQL

on:
pull_request:
push:
branches:
- 'develop'
- 'main'
workflow_dispatch:

env:
Expand All @@ -24,6 +28,10 @@ env:
jobs:
analyze:
runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
pull_request:
branches:
- 'develop'
push:
branches:
- 'develop'
workflow_dispatch:

env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
workflow_dispatch:

env:
Expand Down

0 comments on commit 7eb730b

Please sign in to comment.