diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 4c2f630..f13e12b 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -33,12 +33,12 @@ jobs: run: echo "pyver=$(python3 -c 'import sys; print(f"py{sys.version_info.major}{sys.version_info.minor}")')" >> "$GITHUB_OUTPUT" - name: Check ruff formating - run: .venv/bin/ruff format --diff vault_oidc_ssh_cert_action.py + run: .venv/bin/ruff format --target-version "$PYVER" --diff vault_oidc_ssh_cert_action.py env: PYVER: ${{ steps.detect.outputs.pyver }} - name: Check ruff linting - run: .venv/bin/ruff check vault_oidc_ssh_cert_action.py + run: .venv/bin/ruff check --target-version "$PYVER" vault_oidc_ssh_cert_action.py env: PYVER: ${{ steps.detect.outputs.pyver }}