Giter VIP home page Giter VIP logo

scorecard-webapp's Introduction

OpenSSF Scorecard API and website

OpenSSF Scorecard Netlify Status

scorecard-webapp

Code for https://securityscorecards.dev (./scorecards-site) and https://api.securityscorecards.dev (./app).

The site is deployed on Netlify and the deployment configuration is in netlify.toml. Any changes committed to netlify.toml and scorecards-site/ on main branch gets automatically deployed to production. So please make sure to review deploy previews when making changes to the site.

The API uses OpenAPI spec and go-swagger to auto-generate server and client code. Any changes committed to openapi.yaml on the main branch gets deployed to the staging site only. To make changes to the production API, a new Git tag needs to be generated which will auto deploy the latest tag to production.

Release process

GitHub release

Cut a release for the project via the GitHub UX or by pushing a new tag.

TODO: automate these steps

Any updates made to openapi.yaml needs to be deployed onto Google Cloud Endpoints. To do that, follow these steps:

$ gcloud auth login
$ gcloud endpoints services deploy openapi.yaml --project openssf --quiet --format=json > /tmp/gcloud.json
$ wget https://raw.githubusercontent.com/GoogleCloudPlatform/esp-v2/master/docker/serverless/gcloud_build_image \
   --output-document=/tmp/gcloud_build_image
$ chmod +x /tmp/gcloud_build_image
$ /tmp/gcloud_build_image -c $(cat /tmp/gcloud.json | jq -r .serviceConfig.id) \
   -s $(cat /tmp/gcloud.json | jq -r .serviceConfig.name) \
   -p openssf -z us
$ gcloud run deploy scorecard-endpoints-prod \
   --image=<image-from-above-step> \
   --project=openssf
   # For region prompt, choose us-central1.

scorecard-webapp's People

Contributors

dependabot[bot] avatar azeemshaikh38 avatar naveensrinivasan avatar mdunbavan avatar spencerschrock avatar laurentsimon avatar abirismyname avatar rohankh532 avatar lehors avatar azeemsgoogle avatar calebbrown avatar davidkorczynski avatar dirien avatar justaugustus avatar asraa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.