Skip to content

Conversation

martincostello
Copy link
Member

Test that secrets can be accessed from Vault.

Test that secrets can be accessed from Vault.
@martincostello
Copy link
Member Author

Script didn't fail and there are redacted entries in the logs, so looks like it works:

  Run if ([string]::IsNullOrEmpty(${env:FEEDZ_IO_TOKEN})) {
  if ([string]::IsNullOrEmpty(${env:FEEDZ_IO_TOKEN})) {
    echo "::error::Failed to retrieve feedz.io token."
    exit 1
  }
  if ([string]::IsNullOrEmpty(${env:NUGET_TOKEN})) {
    echo "::error::Failed to retrieve NuGet token."
    exit 1
  }
  shell: /usr/bin/pwsh -command ". '{0}'"
  env:
    DOTNET_CLI_TELEMETRY_OPTOUT: true
    DOTNET_NOLOGO: true
    DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
    NUGET_XMLDOC_MODE: skip
    TERM: xterm
    FEEDZ_IO_TOKEN: ***
    NUGET_TOKEN: ***

@martincostello martincostello deleted the test-secrets branch August 5, 2025 13:16
@martincostello martincostello mentioned this pull request Aug 5, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant