-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add OpenSSF scorecard monitor (#13)
* feat: add OpenSSF scorecard monitor * fix: openssf scorecard scope file * chore: remove space
- Loading branch information
1 parent
c714ed5
commit 1424b27
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: OpenSSF Scorecard Monitor | ||
|
||
on: | ||
# TODO: replace by CRON trigger once a deccision is made | ||
# Manual trigger | ||
workflow_dispatch: | ||
|
||
# Permissions required to run this workflow (create issue and commit/push changes) | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
issues: write | ||
packages: none | ||
|
||
jobs: | ||
security-scoring: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
|
||
- name: OpenSSF Scorecard Monitor | ||
uses: UlisesGascon/openssf-scorecard-monitor@8551177324543b39670fe3c430012c946a937bd1 # v2.0.0-beta7 | ||
with: | ||
scope: tools/ossf_scorecard/scope.json | ||
database: tools/ossf_scorecard/database.json | ||
report: tools/ossf_scorecard/report.md | ||
auto-commit: false | ||
auto-push: false | ||
generate-issue: true | ||
issue-title: "OpenSSF Scorecard Report updated!" | ||
max-request-in-parallel: 10 | ||
discovery-enabled: true | ||
discovery-orgs: 'expressjs,pillarjs,jshttp' | ||
report-tags-enabled: true | ||
# The token is needed to create issues, discovery mode and pushing changes in files | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create Pull Request | ||
uses: gr2m/create-or-update-pull-request-action@2fa38a89a3163b6ee8a76c110d3af2d7325ea9aa # v1.9.3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
commit-message: 'docs: OpenSSF Scorecard Report updated' | ||
title: OpenSSF Scorecard Report updated | ||
body: 'OpenSSF Scorecard Report updated.' | ||
assignees: ${{ github.actor }} | ||
labels: security-wg-agenda | ||
branch: openssf-scorecard-report-updated | ||
update-pull-request-title-and-body: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"github.com": [ | ||
{ | ||
"org": "expressjs" | ||
}, | ||
{ | ||
"org": "pillarjs" | ||
}, | ||
{ | ||
"org": "jshttp" | ||
} | ||
] | ||
} |