Skip to content

Commit 72099f5

Browse files
committed
Rename gh-token to token
1 parent bb57c6c commit 72099f5

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: tuxcare/vex-auto-triage@v1
4343
with:
4444
ecosystems: 'java,python'
45-
gh-token: ${{ secrets.GITHUB_TOKEN }}
45+
token: ${{ secrets.GITHUB_TOKEN }}
4646
```
4747
4848
## Configuration
@@ -52,7 +52,7 @@ jobs:
5252
| Input | Required | Default | Description |
5353
|-------|----------|---------|-------------|
5454
| `ecosystems` | Yes | - | Comma-separated list of ecosystems to process: `java`, `python`, `javascript`, `php` |
55-
| `gh-token` | Yes | - | GitHub token with `security_events` write permission |
55+
| `token` | Yes | - | GitHub token with `security_events` write permission |
5656
| `dry-run` | No | `false` | If `true`, simulates dismissals without actually dismissing alerts |
5757
| `max-alerts` | No | `0` | Maximum number of alerts to process (0 = unlimited, useful for testing) |
5858
| `verbosity` | No | `INFO` | Logging level: `DEBUG`, `INFO`, `WARNING`, `ERROR` |
@@ -75,7 +75,7 @@ permissions:
7575
- uses: tuxcare/vex-auto-triage@v1
7676
with:
7777
ecosystems: 'java'
78-
gh-token: ${{ secrets.GITHUB_TOKEN }}
78+
token: ${{ secrets.GITHUB_TOKEN }}
7979
```
8080

8181
### Multiple Ecosystems
@@ -84,7 +84,7 @@ permissions:
8484
- uses: tuxcare/vex-auto-triage@v1
8585
with:
8686
ecosystems: 'java,python,javascript,php'
87-
gh-token: ${{ secrets.GITHUB_TOKEN }}
87+
token: ${{ secrets.GITHUB_TOKEN }}
8888
```
8989

9090
### Dry-Run Mode (Testing)
@@ -95,7 +95,7 @@ Test the action without dismissing alerts:
9595
- uses: tuxcare/vex-auto-triage@v1
9696
with:
9797
ecosystems: 'java'
98-
gh-token: ${{ secrets.GITHUB_TOKEN }}
98+
token: ${{ secrets.GITHUB_TOKEN }}
9999
dry-run: 'true'
100100
verbosity: 'DEBUG'
101101
```
@@ -108,7 +108,7 @@ Process only the first 10 alerts:
108108
- uses: tuxcare/vex-auto-triage@v1
109109
with:
110110
ecosystems: 'java'
111-
gh-token: ${{ secrets.GITHUB_TOKEN }}
111+
token: ${{ secrets.GITHUB_TOKEN }}
112112
max-alerts: '10'
113113
```
114114

@@ -140,7 +140,7 @@ jobs:
140140
- uses: tuxcare/vex-auto-triage@v1
141141
with:
142142
ecosystems: 'java,python'
143-
gh-token: ${{ secrets.GITHUB_TOKEN }}
143+
token: ${{ secrets.GITHUB_TOKEN }}
144144
dry-run: ${{ inputs.dry_run }}
145145
```
146146

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
ecosystems:
1111
description: 'Comma-separated list of ecosystems to process (java, python, javascript, php)'
1212
required: true
13-
gh-token:
13+
token:
1414
description: 'GitHub token with security_events write permission'
1515
required: true
1616
dry-run:

src/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self):
4040
"""Initialize configuration from environment variables."""
4141
self.ecosystems = self._parse_ecosystems()
4242
self.github_repository = self._get_required("GITHUB_REPOSITORY")
43-
self.github_token = self._get_required("INPUT_GH-TOKEN")
43+
self.github_token = self._get_required("INPUT_TOKEN")
4444
self.dry_run = self._get_bool("INPUT_DRY-RUN", False)
4545
self.max_alerts = self._get_int("INPUT_MAX-ALERTS", 0)
4646
self.verbosity = self._get_str("INPUT_VERBOSITY", "INFO").upper()

0 commit comments

Comments
 (0)