diff --git a/.github/workflows/codeql-actions.yml b/.github/workflows/codeql-actions.yml index fecb95d02..fc511334c 100644 --- a/.github/workflows/codeql-actions.yml +++ b/.github/workflows/codeql-actions.yml @@ -10,6 +10,11 @@ on: workflow_dispatch: schedule: - cron: '17 10 * * 2' + workflow_call: + inputs: + ref: + required: true + type: string jobs: analyze-python: @@ -27,6 +32,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ inputs.ref }} persist-credentials: false # Initializes the CodeQL tools for scanning. diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index efdd846b1..0e650e6ee 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -61,14 +61,20 @@ jobs: with: ref: ${{ needs.pre-publish.outputs.version }} - static-scan: + static-python: needs: [pre-publish] uses: ./.github/workflows/codeql-python.yml with: ref: ${{ needs.pre-publish.outputs.version }} + static-actions: + needs: [pre-publish] + uses: ./.github/workflows/codeql-actions.yml + with: + ref: ${{ needs.pre-publish.outputs.version }} + publish: - needs: [build-dist, static-scan] + needs: [build-dist, static-python, static-actions] name: Upload release to PyPI runs-on: ubuntu-latest environment: release-python