CrunchyData / postgres-operator

Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service.
https://access.crunchydata.com/documentation/postgres-operator/v5/
Apache License 2.0
3.96k stars 593 forks source link

Reject pull requests that change imported licenses #3996

Closed cbandy closed 2 months ago

cbandy commented 2 months ago

We import dependencies that use a handful of open-source licenses. We want to be intentional about any change to these licenses, so this automation flags pull requests that do so.

Go modules are immutable, so checking during pull requests and pushes should suffice.

Checklist:

Type of Changes:

Other Information:

Issue: PGO-1556

github-advanced-security[bot] commented 2 months ago

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

cbandy commented 2 months ago

Here's what it looks like when a license is not in the configured list: https://github.com/CrunchyData/postgres-operator/actions/runs/10914660621/job/30293145553?pr=3996