feature: OSSF-Scorecard Integration#466
Open
Shtirmann wants to merge 8 commits into
Open
Conversation
Collaborator
|
А есть пример нового отчета? |
Collaborator
Author
Приложил пример |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Решает issue: #250
Интеграция OpenSSF Scorecard в отчёты OSA. Включается флагом
--scorecard. Гоняем scorecard локально дважды за прогон - на исходном репо и после работы OSA.Что внутри
osa_tool/tools/repository_analysis/scorecard.py): запускаетscorecard --local, парсит JSON. Бинарь (v5.5.0) скачивается автоматически и кэшируется в~/.osa_tool/bin/; если не вышло, то секция тихо пропускается, отчёт всё равно собирается.osa_tool/operations/analysis/repository_report/report_maker.py): в ДО - таблица оценок, в ПОСЛЕ - сравнение Before / After / Δ.Платформы
Linux/macOS. На Windows - баг самого scorecard с путями в
--local(4 из 6 проверок дают N/A); нашёл, пофиксил, отправил в upstream: ossf/scorecard#5089. Примут - подключим Windows.На что влияет OSA
permissions:→ токен по умолчанию write → 0@v4, проверке нужен SHA → 0.pt/.joblib)Потенциальный follow-up: подправить наши же шаблоны (пиннинг экшенов по SHA +
contents: read) - тогда закроем ещё Token-Permissions и Pinned-Dependencies.Проверить
Смотреть
{repo}_report.pdfи{repo}_work_summary.pdf. Без флага поведение не меняется.Отчёт ДО:
Отчёт ПОСЛЕ: