Skip to content

🚸 Allow configuring the runners enabled for Python packaging #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

burgholzer
Copy link
Member

This follows up on #95 and enables the configuration of the runners used in the Python packaging workflow.

By default, the following runners are enabled:

  • ubuntu-24.04
  • ubuntu-24.04-arm
  • macos-13
  • macos-14
  • windows-2022

The following runners can be enabled via opt-in:

  • ubuntu-22.04
  • ubuntu-22.04-arm
  • macos-15
  • windows-2025
  • windows-11-arm

Compared to the latest release version of the workflows, this does not change any of the default behavior.
However, it allows you to opt-in to more modern runners. Most notably, the new Windows 11 ARM runners.

@burgholzer burgholzer added continuous integration Anything related to the CI setup usability Anything related to usability labels Apr 15, 2025
@burgholzer burgholzer self-assigned this Apr 15, 2025
name: Build runner matrix
run: |
matrix='[]'
if [ "${{ inputs.enable-ubuntu2404 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-ubuntu2404 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-ubuntu2404 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-24.04"}]')
fi
if [ "${{ inputs.enable-ubuntu2204 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-ubuntu2204 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-ubuntu2204 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-22.04"}]')
fi
if [ "${{ inputs.enable-ubuntu2404-arm }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-ubuntu2404-arm }
, which may be controlled by an external user.
if [ "${{ inputs.enable-ubuntu2404-arm }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-24.04-arm"}]')
fi
if [ "${{ inputs.enable-ubuntu2204-arm }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-ubuntu2204-arm }
, which may be controlled by an external user.
if [ "${{ inputs.enable-ubuntu2204-arm }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-22.04-arm"}]')
fi
if [ "${{ inputs.enable-macos13 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-macos13 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-macos13 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "macos-13"}]')
fi
if [ "${{ inputs.enable-macos14 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-macos14 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-macos14 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "macos-14"}]')
fi
if [ "${{ inputs.enable-macos15 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-macos15 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-macos15 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "macos-15"}]')
fi
if [ "${{ inputs.enable-windows2022 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-windows2022 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-windows2022 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "windows-2022"}]')
fi
if [ "${{ inputs.enable-windows2025 }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-windows2025 }
, which may be controlled by an external user.
if [ "${{ inputs.enable-windows2025 }}" = "true" ]; then
matrix=$(echo $matrix | jq '. + [{"runs-on": "windows-2025"}]')
fi
if [ "${{ inputs.enable-windows11-arm }}" = "true" ]; then

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.enable-windows11-arm }
, which may be controlled by an external user.
@burgholzer burgholzer merged commit 7fcef6a into main Apr 15, 2025
4 checks passed
@burgholzer burgholzer deleted the configurable-packaging-runners branch April 15, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous integration Anything related to the CI setup usability Anything related to usability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant