Skip to content

OpenSSF Scoring

OpenSSF Scoring #40

name: "OpenSSF Scoring"
on:
# TODO: Restore CRON trigger once https://github.com/nodejs/security-wg/issues/908 is closed
# 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: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.3.0
- 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
report-tags-enabled: true
issue-title: "OpenSSF Scorecard Report Updated!"
github-token: ${{ secrets.GITHUB_TOKEN }}
max-request-in-parallel: 10
discovery-enabled: true
discovery-orgs: 'nodejs'
- name: Create Pull Request
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit-message: 'docs: OpenSSF Scorecard Report Updated'
title: OpenSSF Scorecard Report Updated
body: 'OpenSSF Scorecard Report Updated. cc: @nodejs/security-wg'
assignees: ${{ github.actor }}
labels: security-wg-agenda
branch: openssf-scorecard-report-updated
update-pull-request-title-and-body: true