Skip to content

Commit

Permalink
Configure renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
rxbn committed Mar 31, 2022
1 parent 5be372a commit a590dd6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": [
"config:base"
],
"labels": ["dependencies"],
"postUpdateOptions": ["gomodTidy"]
}
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ func main() {
if *secretKey == "" {
log.Fatal("secretkey cannot be empty")
}

if len(*secretKey) != 16 && len(*secretKey) != 32 {
log.Fatal("secretkey must be 16 or 32 characters long")
}

fmt.Print(gotp.NewDefaultTOTP(*secretKey).Now())
}
5 changes: 0 additions & 5 deletions renovate.json

This file was deleted.

0 comments on commit a590dd6

Please sign in to comment.