finalize
This commit is contained in:
@@ -4,33 +4,33 @@ Reusable GitHub Action that uploads a SARIF report to [TAS (Tea Advanced Securit
|
||||
|
||||
## Inputs
|
||||
|
||||
| Input | Required | Description |
|
||||
|-------|----------|-------------|
|
||||
| `tas-base-url` | Yes | Base URL of the TAS API (e.g. `https://tas.example.com`) |
|
||||
| `sarif-file` | Yes | Path to the SARIF report file (JSON) |
|
||||
| `owner` | No | Repository owner (default: `github.repository_owner`) |
|
||||
| `repo` | No | Repository name (default: `github.event.repository.name`) |
|
||||
| `branch` | No | Branch name (default: `github.ref_name`) |
|
||||
| Input | Required | Description |
|
||||
| -------------- | -------- | --------------------------------------------------------- |
|
||||
| `tas-base-url` | Yes | Base URL of the TAS API (e.g. `https://tas.example.com`) |
|
||||
| `sarif-file` | Yes | Path to the SARIF report file (JSON) |
|
||||
| `owner` | No | Repository owner (default: `github.repository_owner`) |
|
||||
| `repo` | No | Repository name (default: `github.event.repository.name`) |
|
||||
| `branch` | No | Branch name (default: `github.ref_name`) |
|
||||
|
||||
## Usage
|
||||
|
||||
```yaml
|
||||
- name: Upload SARIF to TAS and gate
|
||||
uses: your-org/tas-actions/tas-upload-sarif@v1
|
||||
uses: https://gitea.t000-n.de/t.behrendt/tas-actions/tas-upload-sarif@v1
|
||||
with:
|
||||
tas-base-url: 'https://tas.example.com'
|
||||
sarif-file: 'results.sarif'
|
||||
tas-base-url: "https://tas.example.com"
|
||||
sarif-file: "results.sarif"
|
||||
```
|
||||
|
||||
With explicit owner/repo/branch (e.g. for monorepos or custom refs):
|
||||
|
||||
```yaml
|
||||
- uses: your-org/tas-actions/tas-upload-sarif@v1
|
||||
- uses: [your-org/tas-actions/tas-upload-sarif@v1](https://gitea.t000-n.de/t.behrendt/tas-actions/tas-upload-sarif@v1)
|
||||
with:
|
||||
tas-base-url: ${{ vars.TAS_BASE_URL }}
|
||||
sarif-file: 'scan-output.sarif'
|
||||
owner: my-org
|
||||
repo: my-repo
|
||||
owner: ${{ github.repository_owner}}
|
||||
repo: ${{ github.event.repository.name }}
|
||||
branch: ${{ github.head_ref }}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user