Skip to content

marcelschliesser/testing

Repository files navigation

A Core Web Vitals Logger which logs the cwv in a cloud run service to big query for give hosts peridoically

Setting up Identity Federation for GitHub Actions

https://github.com/google-github-actions/auth#setup

set gcp_project_id=pagespeed-insights-logger

gcloud services enable iamcredentials.googleapis.com

gcloud iam workload-identity-pools create "github-pool" --project=%gcp_project_id% --location="global" --display-name="Pool for Github Actions"

gcloud iam workload-identity-pools providers create-oidc "github-action-provider" --project=%gcp_project_id% --location="global" --workload-identity-pool="github-pool" --display-name="Github Action Provider" --attribute-mapping="google.subject=assertion.sub,attribute.actor=assertion.actor,attribute.aud=assertion.aud" --issuer-uri="https://token.actions.githubusercontent.com"

gcloud iam service-accounts add-iam-policy-binding "[email protected]" --project=%gcp_project_id% --role="roles/iam.workloadIdentityUser" --member="principalSet://iam.googleapis.com/projects/498248676648/locations/global/workloadIdentityPools/github-pool/*"

pagespeed api

docs: https://developers.google.com/speed/docs/insights/rest/v5/pagespeedapi/runpagespeed Enable and resrict the api key manually https://medium.com/interleap/automating-terraform-deployment-to-google-cloud-with-github-actions-17516c4fb2e5

set up.

set gcp_project_id=pagespeed-insights-logger
set gcp_project_name=PageSpeed Insights Logger

gcloud projects create %gcp_project_id% --name="%gcp_project_name%"

Pre-commit use Python Black Formatter

https://github.com/psf/black https://black.readthedocs.io/en/stable/integrations/source_version_control.html https://pre-commit.com/#install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published