Github-action-templates

Latest version: v0.0.5

Safety actively analyzes 623541 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.5

* Add support for paramaterization of templates.

0.0.3

* Added support for specifying a template using a url.

0.0.2

* Correctly include comments in the generated yaml for the source template for `jobs` and `events`

0.0.1

Support basic Github Action templating for jobs, steps and events.

Structure of the template file

| Field | Type| Description | Sample Value |
|----|----|----|---|
| name | String | Name of the GitHub Action. | `My Github Action` |
| jobs | Array |Array of jobs which the Github Action will contain |
| jobs[n].template |String| Full or relative path to the template file. Can be just the name if the default location (.action_templates/jobs) is used. | `.action_templates/jobs/hello-world.yaml` |
| jobs[n].if |String| Contents of the `if:` condition that will be used for this job. | `github.event.pull_request.head.repo.full_name == '<some-value>'`|
| jobs[n].steps |Array| Array of step template objects |||
| jobs[n].steps[n].template |String| Full or relative path to the template file. Can be just the name if the default location (.action_templates/steps) is used.| `python-setup`|
| jobs[n].steps[n].if |String| Contents of the `if:` condition that will be used for **all steps** in this template. | `always()`|
| events |Array| Array of events, these correspond to the `on` section of a workflow file. |
| events[n].template |String| Full or relative path to the template file. Can be just the name if the default location (.action_templates/events) is used.| `on-pull-request-master` |

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.