austenstone/GitHub Python Script
Run Python scripts with access to GitHub API and workflow context
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| script | The Python script to run | yes | — |
| github-token | The GitHub token used to create an authenticated client | no | ${{ github.token }} |
| result-encoding | The encoding to use for the result (json or string) | no | json |
| retries | Number of times to retry failed requests | no | 0 |
| retry-exempt-status-codes | Comma-separated list of status codes to exempt from retries | no | 400,401,403,404,422 |
| base-url | Base URL for GitHub API (for GitHub Enterprise) | no | — |
| python-version | Python version to use | no | 3.x |
Outputs
| name | description |
|---|---|
| result | The return value of the script, encoded as specified by result-encoding |