Replace the service-account key file with application-default credentials

This commit is contained in:
Ian Gulliver
2026-08-19 22:27:46 -07:00
parent 0e934e02cd
commit fa86f5913c
8 changed files with 0 additions and 17 deletions
-2
View File
@@ -6,14 +6,12 @@ import (
"fmt"
"log"
"heliosian/internal/data"
"google.golang.org/api/drive/v3"
"google.golang.org/api/option"
)
func main() {
svc, err := drive.NewService(context.Background(),
option.WithCredentialsFile(data.KeyFile),
option.WithScopes(drive.DriveReadonlyScope))
if err != nil {
log.Fatalf("[ERROR] create drive client: %v", err)