https://github.com/stackrox/actions
Various Reusable GitHub Actions
https://github.com/stackrox/actions
Last synced: 11 months ago
JSON representation
Various Reusable GitHub Actions
- Host: GitHub
- URL: https://github.com/stackrox/actions
- Owner: stackrox
- License: apache-2.0
- Created: 2022-10-06T12:38:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-06T07:05:49.000Z (about 1 year ago)
- Last Synced: 2025-01-13T04:30:00.882Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 142 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Various GitHub Actions
* [Infra / Create Cluster](infra/create-cluster/README.md)
* [Infra / Install `infractl`](infra/install-infractl/README.md)
* [Release / Wait for Image](release/wait-for-image/README.md)
* [Release / Tag](release/tag/README.md)
* [Test](test/README.md)
## Workflows
* [`create-demo-clusters`](.github/workflows/README.md)
## Usage
As this is an internal repository, it can be accessed with the default GitHub
token from any repository workflow under stackrox organization.
Example:
```yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: stackrox/actions/test@main
```
## Testing in local
One may execute the scripts from the repository locally via `test/local-env.sh`,
e.g.:
```sh
$ test/local-env.sh test/test.sh arg1 arg2
::notice::Test script called on ref main
Test script arguments:
* `arg1`
* `arg2`
```
## Versioning
If you publish a new action or make another change that warrants a new release of this repository, create and push a new tag following SemVer.
```bash
git tag -a v1.2.3 -m "Release v1.2.3"
git push origin v1.2.3
```
A Github action will create a short version, in this example `v1`, or move the `v1` tag to your new tag.
## Setting up git hooks
There is currently one pre-push git hook that runs actionlint. To use the pre-push git hook you must
install actionlint and run `git config core.hooksPath ./githooks/` in the root of this repository.