From d088341a42fb2ad6536630c2654a2ac1993189ac Mon Sep 17 00:00:00 2001 From: Antony Milne Date: Tue, 5 Dec 2023 17:06:45 +0000 Subject: [PATCH] Tidy $PYTHON_VERSION --- .github/workflows/check-release.yml | 9 ++++++--- .github/workflows/secret-scan.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 0a76fe8f7..069d30fda 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -5,6 +5,9 @@ on: branches: - main +env: + PYTHON_VERSION: "3.9" + jobs: check-version: runs-on: ubuntu-latest @@ -13,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: $PYTHON_VERSION - name: Install dependencies run: | python -m pip install --upgrade pip @@ -50,7 +53,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: $PYTHON_VERSION - name: Install dependencies run: | python -m pip install --upgrade pip @@ -103,7 +106,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: $PYTHON_VERSION - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/secret-scan.yml b/.github/workflows/secret-scan.yml index a40670715..ac297ba53 100644 --- a/.github/workflows/secret-scan.yml +++ b/.github/workflows/secret-scan.yml @@ -5,6 +5,10 @@ on: workflow_dispatch: schedule: - cron: "0 4 * * *" # run once a day at 4 AM + +env: + PYTHON_VERSION: "3.9" + jobs: scan: name: gitleaks @@ -14,10 +18,10 @@ jobs: - uses: actions/setup-go@v4 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python $PYTHON_VERSION uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: $PYTHON_VERSION - name: Install pre-commit run: pip install pre-commit