Skip to content

Commit 9ffa425

Browse files
committed
fix required inputs
Signed-off-by: Julio Jimenez <julio@clickhouse.com>
1 parent 7a11cf2 commit 9ffa425

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Downloads SBOMs from GitHub. Uploads to S3 and ClickHouse.
88

99
| Name | Description | Default | Required | Sensitive |
1010
| --------------------- | ------------------------------------ | -------------- | -------- | --------- |
11-
| github-token | GitHub token for authentication | | true | true |
11+
| github-token | GitHub token for authentication | | false | true |
1212
| ghapp-token | GitHub App token for authentication | | false | true |
1313
| aws-access-key-id | AWS access key ID for S3 uploads | | true | true |
1414
| aws-secret-access-key | AWS secret access key for S3 uploads | | true | true |
@@ -20,6 +20,10 @@ Downloads SBOMs from GitHub. Uploads to S3 and ClickHouse.
2020
| ref | Git reference (branch, tag, commit) | main | false | false |
2121
| clickhouse-url | ClickHouse URL for uploads | | false | false |
2222

23+
### Notes
24+
25+
- Either `github-token` or `ghapp-token` must be provided for authentication to the GitHub API.
26+
2327
## Usage
2428

2529
### Same Repository

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: 'Your Name'
44
inputs:
55
github-token:
66
description: 'GitHub token for API access'
7-
required: true
7+
required: false
88
ghapp-token:
99
description: 'GitHub App token for API access'
1010
required: false

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ log_error() {
2828

2929
# Validate required environment variables
3030
validate_env() {
31-
local required_vars=("GITHUB_TOKEN" "AWS_ACCESS_KEY_ID" "AWS_SECRET_ACCESS_KEY" "S3_BUCKET" "REPOSITORY")
31+
local required_vars=("AWS_ACCESS_KEY_ID" "AWS_SECRET_ACCESS_KEY" "S3_BUCKET" "REPOSITORY")
3232

3333
for var in "${required_vars[@]}"; do
3434
if [[ -z "${!var:-}" ]]; then

0 commit comments

Comments
 (0)