step-security/Download workflow artifact
Download and extract an artifact associated with given workflow and commit or other criteria
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token | no | ${{ github.token }} |
| workflow | Workflow name. If not specified, will be inferred from run_id (if run_id is specified), or will be the current workflow | no | — |
| workflow_search | Most recent workflow matching all other criteria will be looked up instead of using the current workflow https://docs.github.com/de/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository | no | false |
| workflow_conclusion | Wanted status or conclusion to search for in recent runs https://docs.github.com/de/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow | no | success |
| repo | Repository name with owner (like actions/checkout) | no | ${{ github.repository }} |
| pr | Pull request number | no | — |
| commit | Commit hash | no | — |
| branch | Branch name | no | — |
| ref | Commit hash or branch name | no | — |
| event | Event type | no | — |
| run_id | Workflow run id | no | — |
| run_number | Workflow run number | no | — |
| name | Artifact name (download all artifacts if not specified) | no | — |
| name_is_regexp | Treat artifact name as a regular expression and download only artifacts with matching names | no | false |
| path | Where to unpack the artifact | no | ./ |
| allow_forks | Allow forks | no | false |
| check_artifacts | Check workflow run whether it has an artifact | no | false |
| search_artifacts | Search workflow runs for artifact with specified name | no | false |
| skip_unpack | Choose to skip unpacking the downloaded artifact(s) | no | false |
| dry_run | Check the existence of artifact(s) without downloading | no | — |
| if_no_artifact_found | Choose how to exit the action if no artifact is found fail, warn or ignore | no | fail |
| use_unzip | Use system provided `unzip` utility instead of JS library for unpacking | no | false |
| merge_multiple | If multiple artifacts are found with `name_is_regexp` set to `true`, merge them into one directory | no | false |
Outputs
| name | description |
|---|---|
| error_message | The error message, if an error occurs |
| dry_run | Boolean output which is true if the dry run was successful and false otherwise |
| found_artifact | Boolean output which is true if the artifact was found and false otherwise |
| artifacts | JSON array with details about found artifacts |