https://github.com/stackguardian/sg-cli-gh-action
GitHub action for workflow run
https://github.com/stackguardian/sg-cli-gh-action
Last synced: 4 months ago
JSON representation
GitHub action for workflow run
- Host: GitHub
- URL: https://github.com/stackguardian/sg-cli-gh-action
- Owner: StackGuardian
- License: apache-2.0
- Created: 2022-02-18T20:08:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T10:33:34.000Z (over 1 year ago)
- Last Synced: 2025-04-24T04:15:51.278Z (about 1 year ago)
- Language: Dockerfile
- Size: 449 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StackGuardian CLI docker action
This action interacts with [sg-cli](https://github.com/StackGuardian/sg-cli/blob/main/README.md).
## Inputs
## `operation`
**Required** The sg-cli operation like `"workflow create ..."` or `"stack create ..."`.
## Environment variables
## `SG_API_TOKEN`
**Required** StackGuardian API Token. Retrieve on the platform at `https://app.stackguardian.io/orchestrator/orgs//settings?tab=api_key/`.
## Example usage
```yaml
jobs:
execute-sg-cli:
runs-on: ubuntu-latest
env:
SG_API_TOKEN: ${{ secrets.SG_API_TOKEN }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: stackguardian/sg-cli-gh-action@main
with:
operation: 'workflow create --org demo-org --workflow-group gh-actions --run -- payload.json'
```
See [sg-cli docs](https://github.com/StackGuardian/sg-cli/blob/main/README.md) for the explanation on `payload.json`.