Open mitchelbaker-cisa opened 1 month ago
Array input types are not currently supported, despite many requests for the feature. Current workaround is to convert string types, ie "['windows-latest', 'macos-latest']" to an array using GitHub's built-in fromJSON method which can then be referenced within the workflow like so:
matrix:
os: ${{ fromJSON(inputs.os) }}
💡 Summary
The run_smoke_test.yml workflow runs when pull requests are opened/synchronized and on pushes to main. After the initial PR is merged, we can expand the workflow_dispatch functionality to accommodate user input.
Motivation and context
One drawback with the current implementation is hardcoded values in the workflow. The workflow would be more dynamic if a user can specify comma-delimited values for the os, python version, and opa version for further testing.
Implementation notes
Add inputs under workflow_dispatch, which can be accessed in the workflow with ${{ inputs.name }}. Below is an example from one of ScubaGear's workflows:
Acceptance criteria
How do we know when this work is done?