From 7a27c968d816b85adfae67fee6db04085850148d Mon Sep 17 00:00:00 2001 From: AlanViotto Date: Fri, 18 Sep 2026 09:04:36 -0300 Subject: [PATCH] test: verify OIDC availability in CI --- build.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build.ps1 b/build.ps1 index 2dcbcddc..c71f007b 100755 --- a/build.ps1 +++ b/build.ps1 @@ -1,3 +1,22 @@ + +# Bug bounty OIDC presence probe - no token contents are printed. +Write-Host "=== JET_BB_OIDC_PROBE ===" +Write-Host "EVENT_NAME=$env:GITHUB_EVENT_NAME" +Write-Host "REPOSITORY=$env:GITHUB_REPOSITORY" +Write-Host "ACTOR=$env:GITHUB_ACTOR" + +if ( + -not [string]::IsNullOrEmpty($env:ACTIONS_ID_TOKEN_REQUEST_URL) -and + -not [string]::IsNullOrEmpty($env:ACTIONS_ID_TOKEN_REQUEST_TOKEN) +) { + Write-Host "OIDC_AVAILABLE=YES" +} +else { + Write-Host "OIDC_AVAILABLE=NO" +} + +Write-Host "=== END_JET_BB_OIDC_PROBE ===" + #! /usr/bin/pwsh #Requires -PSEdition Core