Skip to content

Commit 05d2bed

Browse files
committed
CI: CodeQL last
Run after at least Ubuntu has passed.
1 parent b35493b commit 05d2bed

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci.yml

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ concurrency:
99
jobs:
1010
stubs:
1111
# Pushes should only run on mainline branch "development"
12+
# TODO: We can also skip this, if the latest commit's name is "Update Stub Files"
1213
if: github.event_name == 'push' && github.repository == 'AMReX-Codes/pyamrex' && github.ref == 'refs/heads/development'
1314
name: 🔄 Update Stub Files
1415
secrets:
@@ -45,6 +46,16 @@ jobs:
4546
needs: [stubs]
4647
uses: ./.github/workflows/windows.yml
4748

49+
codeql:
50+
if: github.event.pull_request.draft == false
51+
name: 🔎 CodeQL
52+
needs: [ubuntu]
53+
permissions:
54+
actions: read
55+
contents: read
56+
security-events: write
57+
uses: ./.github/workflows/codeql.yml
58+
4859
save_pr_number:
4960
if: github.event_name != 'push'
5061
runs-on: ubuntu-latest

.github/workflows/codeql.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: 🔎 CodeQL
22

33
on:
4-
push:
5-
branches: [ "development" ]
6-
pull_request:
7-
branches: [ "development" ]
4+
workflow_call:
85
schedule:
96
- cron: "27 3 * * 0"
107

0 commit comments

Comments
 (0)