Created initial auth & project modules #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several significant changes, including the addition of configuration files for Dependabot, GitHub Actions workflows for Go linting, testing, and license checking, as well as new Go modules and utility functions for authentication and project ID retrieval.
Configuration and Automation:
.github/dependabot.yml
to automate dependency updates for Go modules and GitHub Actions..github/workflows/go.yml
to set up workflows for linting and testing Go code using GitHub Actions..github/workflows/license_go.yml
to automate license checking and reporting for Go dependencies.Go Modules and Dependencies:
go.mod
file to define the module and its dependencies, including both direct and indirect dependencies.Utility Functions:
pkg/authentication/auth.go
to handle OAuth2 token sourcing and HTTP authorization for Google Cloud services.pkg/project/project.go
to fetch the Google Cloud project ID from the environment or metadata server.