diff --git a/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/github-pr-comment.yaml b/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/github-pr-comment.yaml index 5fe8133ad5..84391dcbc2 100644 --- a/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/github-pr-comment.yaml +++ b/fcli-core/fcli-fod/src/main/resources/com/fortify/cli/fod/actions/zip/github-pr-comment.yaml @@ -40,6 +40,10 @@ parameters: description: "Scan type for which to list vulnerabilities. Default value: Static" required: true defaultValue: Static + - name: github-api-url + description: 'Required GitHub API URL. Default value: GITHUB_API_URL environment variable.' + required: true + defaultValue: ${#env('GITHUB_API_URL')} - name: github-token description: 'Required GitHub Token. Default value: GITHUB_TOKEN environment variable.' required: true @@ -68,7 +72,7 @@ parameters: addRequestTargets: - name: github - baseUrl: https://api.github.com + baseUrl: ${parameters['github-api-url']} headers: Authorization: Bearer ${parameters['github-token']} 'X-GitHub-Api-Version': '2022-11-28' diff --git a/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/actions/zip/github-pr-comment.yaml b/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/actions/zip/github-pr-comment.yaml index 8320cc4bd9..4d0ca2ca7c 100644 --- a/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/actions/zip/github-pr-comment.yaml +++ b/fcli-core/fcli-ssc/src/main/resources/com/fortify/cli/ssc/actions/zip/github-pr-comment.yaml @@ -44,6 +44,10 @@ parameters: description: "Analysis type for which to list vulnerabilities. Default value: SCA" required: true defaultValue: SCA + - name: github-api-url + description: 'Required GitHub API URL. Default value: GITHUB_API_URL environment variable.' + required: true + defaultValue: ${#env('GITHUB_API_URL')} - name: github-token description: 'Required GitHub Token. Default value: GITHUB_TOKEN environment variable.' required: true @@ -72,7 +76,7 @@ parameters: addRequestTargets: - name: github - baseUrl: https://api.github.com + baseUrl: ${parameters['github-api-url']} headers: Authorization: Bearer ${parameters['github-token']} 'X-GitHub-Api-Version': '2022-11-28'