-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make it possible to read secrets from files
- Loading branch information
Showing
8 changed files
with
140 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Change: Read secrets form files | ||
|
||
We have added proper support to load secrets like the token or the private key | ||
for app authentication from files or from base64-encoded strings. Just provide | ||
the flags or environment variables for token or private key with a DSN formatted | ||
string like `file://path/to/file` or `base64://Zm9vYmFy`. | ||
|
||
Since the private key for GitHub App authentication had been provided in | ||
base64-encoded format this is a breaking change as this won't work anymore until | ||
you prefix the value with `base64://`. | ||
|
||
https://github.com/promhippie/github_exporter/pull/245 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package action | ||
|
||
// boolP returns a boolean pointer. | ||
func boolP(i bool) *bool { | ||
return &i | ||
} | ||
|
||
// stringP returns a string pointer. | ||
func stringP(i string) *string { | ||
return &i | ||
} | ||
|
||
// slceP returns a slice pointer. | ||
func sliceP(i []string) *[]string { | ||
return &i | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters