Comments (9)
FYI, Scorecard Branch-Protection
data already has the status checks. Not needed right now, but can consider pulling in this info from Scorecard directly at some point.
from allstar.
Maybe also, in the object: an optional msg
field that overwrites the message given to developers if that status check is found missing. If not present a general "missing X status check" message will be outputted.
from allstar.
This sounds great. It would be good to propose the additional names and types of the members in the config.
Why would required
be needed. Why would you list a name of expected check, but it not be required?
The GitHub data looks straight forward, just a list of strings.
from allstar.
Why would
required
be needed. Why would you list a name of expected check, but it not be required?
We have a bunch of status checks we supply through GitHub Apps in our org to give feedback to folks as they work on PRs, but they don't necessarily need to succeed before code is merged. e.g. providing teams early security feedback but the violations only have to be fixed later on, teams can still merge code with the failed status check.
I'm fine with putting this together without the required
field but that's my use case.
from allstar.
Given the GitHub data it seems the status checks submitted must be considered required, which makes sense. So the new data going into the config would look like:
status_checks:
- mycheck
- theothercheck
- other
With no other metadata needed. Just the names
from allstar.
Sounds great, lgtm
from allstar.
I had a need for this for our org's use case so I went ahead and took a stab at an implementation! #147
from allstar.
FYI #147 was just merged. Note that the final version changed the interface slightly to allow for specifying the GH app that should provide the context:
requireStatusChecks:
- context: "Analyze (go)"
appID: 15368
- context: "lint"
- context: "build"
appID: 15368
Refer to #147 (comment) for rationale
from allstar.
Closed with above
from allstar.
Related Issues (20)
- [Feature Request]: Check rulesets for branch protection rules HOT 2
- Allstar not opening issue on a fork HOT 2
- FR: Add a check for pinned dependencies HOT 4
- OptConfig missing on GH action policies
- Having setup difficulty using ossf provided instance HOT 1
- Prevent enforcement of `Branch Protection` on archived repositories HOT 1
- Create GitHub private vulnerability reports as an action
- Policy for checking for arbitrary file existence HOT 8
- [bug] Issue in member repo is updated/edited when org config IssueRepo is set centrally HOT 1
- [improvement] Allow app running with --once to exit with error when policy errors are encountered HOT 1
- Time for a new release? HOT 4
- Feature: Add `issueDetails` option to the configuration files
- Emit logs with details about configuration origin and final configuration
- Outside collaborators should be override-able at the repo-level HOT 2
- Allstar operations overview follow-ups HOT 1
- Improve Allstar's Scorecard HOT 2
- Update emitted copy around OpenSSF Scorecard checks
- Document recent changes to the generic Scorecard policy HOT 1
- Interested in support for self-hosted GHE installation HOT 2
- Issue with Allstar Branch Protection Enforcement (404 errors upon action: fix) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from allstar.