Skip to content

stackrox/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Various GitHub Actions

Workflows

Usage

As this is an internal repository, it can be accessed with the default GitHub token from any repository workflow under stackrox organization.

Example:

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.:

$ 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.

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.