Skip to content

Commit 3c6a9ff

Browse files
authored
PYTHON-5348 Run GitHub Actions Scan as Part of Python Release (#1000)
1 parent 5bd7370 commit 3c6a9ff

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/codeql-actions.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
workflow_dispatch:
1111
schedule:
1212
- cron: '17 10 * * 2'
13+
workflow_call:
14+
inputs:
15+
ref:
16+
required: true
17+
type: string
1318

1419
jobs:
1520
analyze-python:
@@ -27,6 +32,7 @@ jobs:
2732
uses: actions/checkout@v4
2833
with:
2934
fetch-depth: 0
35+
ref: ${{ inputs.ref }}
3036
persist-credentials: false
3137

3238
# Initializes the CodeQL tools for scanning.

.github/workflows/release-python.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,20 @@ jobs:
6161
with:
6262
ref: ${{ needs.pre-publish.outputs.version }}
6363

64-
static-scan:
64+
static-python:
6565
needs: [pre-publish]
6666
uses: ./.github/workflows/codeql-python.yml
6767
with:
6868
ref: ${{ needs.pre-publish.outputs.version }}
6969

70+
static-actions:
71+
needs: [pre-publish]
72+
uses: ./.github/workflows/codeql-actions.yml
73+
with:
74+
ref: ${{ needs.pre-publish.outputs.version }}
75+
7076
publish:
71-
needs: [build-dist, static-scan]
77+
needs: [build-dist, static-python, static-actions]
7278
name: Upload release to PyPI
7379
runs-on: ubuntu-latest
7480
environment: release-python

0 commit comments

Comments
 (0)