theupdateframework / python-tuf

Python reference implementation of The Update Framework (TUF)
https://theupdateframework.com/
Apache License 2.0
1.63k stars 272 forks source link

Publish OSSF Scorecard results #2160

Closed jku closed 1 year ago

jku commented 2 years ago

https://github.com/ossf/scorecard

Would be nice to get these results visible. They have a GitHub Action that we could use.

The installation instructions say:

One Scorecards check (Branch-Protection) requires authentication using a Personal Access Token (PAT). If you want all Scorecards checks to run on a public repository, you will need to follow the optional Authentication step. If you don't, all checks will run except Branch-Protection.

The token is described as "read-only" but I don't understand why it would be read-only... maybe it is but I don't get how.

So:

spartan289 commented 2 years ago

hi i would like to work on this issue

jku commented 2 years ago

Hi, thanks!

As advice: I think the instructions in https://github.com/ossf/scorecard-action#workflow-setup might not work for you in this repository (the UI probably won't be there unless you are admin). Options:

spartan289 commented 2 years ago

Yes i will do it.

jku commented 2 years ago

oh they have manual setup instructions too https://github.com/ossf/scorecard-action#manual-action-setup

jku commented 1 year ago

I think I'll try to enable this today.

(no slight on you spartan: it's just been 3 weeks since last comment, and I'd like to see the results of recetnt configuration changes)

spartan289 commented 1 year ago

I tried, but it was always showing error

jku commented 1 year ago

I've added "ossf/scorecard-action@*" to allowed actions for this project -- based on @joshuagl review I figured there was consensus on this

jku commented 1 year ago

Now it works: https://github.com/theupdateframework/python-tuf/actions/runs/3525418144/jobs/5912109928

OpenSSF Scorecard :+1: