sethvargo
Repos
64
Followers
3364
Following
5

A Go library for parsing struct tags from environment variables.

677
41

A Golang library for generating high-entropy random passwords similar to 1Password or LastPass.

506
60

Delete untagged image refs in Google Container Registry or Artifact Registry

602
86

Go library for retrying with configurable backoffs

377
19

A supersonic rate limiting package for Go with HTTP middleware.

365
29

Golang library for generating passphrases via the diceware algorithm.

86
15

Events

Is there a way to output the secret into a json file?

TL;DR

Is there a way to output the secret into a JSON file to the project root like gcloud beta cli?

gcloud beta secrets versions access --secret=default latest > config.json

Detailed design

I have a firebase project where my secrets are stored as a JSON file in the project root directory.

I would like to use https://github.com/FirebaseExtended/action-hosting-deploy to manage my deployment to firebase hosting and inject the secret as a JSON file into the root during the build process.

Additional information

No response

Created at 1 day ago
Is there a way to output the secret into a json file?

Hi @chinesehemp

You could do exactly what you typed above using the setup-gcloud wrapper. Alternatively, you could use this action to download the secrets and then use another action to write to a file - there's quite a few options in the GitHub Actions Marketplace.

Created at 1 day ago
no refs were deleted

If you attach debugging info, that will be helpful in narrowing down the issue: https://github.com/GoogleCloudPlatform/gcr-cleaner#debugging

Created at 1 day ago
no refs were deleted

You need to use -recursive if you want to go across multiple repos.

Created at 2 days ago
closed issue
jvsctl requires a server for breakglass

TL;DR

The jvsctl command requires a server property, even for breakglass tokens.

Expected behavior

Breakglass should not require a server.

Observed behavior

Breakglass requires a server.

Environment Details

Everywhere

Additional information

No response

Created at 4 days ago
push

Drop global variables in CLI (#134)

  • Drop global variables in CLI

This removes the use of global variables for state in pkg/cli, which has the added benefit of allowing CLI tests to run in parallel. This new pattern ensures configuration is loaded and passed to child commands.

  • Review feedback
Created at 4 days ago
delete branch
sethvargo delete branch sethvargo/test
Created at 4 days ago
pull request closed
Drop global variables in CLI

This removes the use of global variables for state in pkg/cli, which has the added benefit of allowing CLI tests to run in parallel. This new pattern ensures configuration is loaded and passed to child commands.

Fixes #133

Created at 4 days ago
push

Review feedback

Created at 4 days ago
push

Drop global variables in CLI

This removes the use of global variables for state in pkg/cli, which has the added benefit of allowing CLI tests to run in parallel. This new pattern ensures configuration is loaded and passed to child commands.

Created at 5 days ago