Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: OpenSSF Scorecard

# Supply-chain posture scoring (branch protection, pinned actions, token
# permissions, …). Runs on default-branch push and on a weekly schedule;
# results upload to the code-scanning dashboard.

on:
push:
branches: [main, master]
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:

permissions: {}

jobs:
scorecard:
uses: netresearch/.github/.github/workflows/scorecard.yml@main
permissions:
contents: read
security-events: write
id-token: write
actions: read
31 changes: 29 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,41 @@
name: Security

# Aggregated security scans: secret scanning (gitleaks), dependency review on
# PRs, and a Node.js dependency audit.
#
# Top-level `permissions: {}` denies everything by default; each reusable
# caller job re-declares the exact union its reusable requires, so the token
# passed to each reusable is fully explicit and never relies on the repo
# default (default_workflow_permissions). This is the same contract proven in
# netresearch/.github's go-app / php-module templates.

on:
pull_request:
branches: [main, master]
push:
branches: [main, master]
pull_request:

permissions: {}

jobs:
gitleaks:
uses: netresearch/.github/.github/workflows/gitleaks.yml@main
permissions:
contents: read
security-events: write
secrets:
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

dependency-review:
if: github.event_name == 'pull_request'
uses: netresearch/.github/.github/workflows/dependency-review.yml@main
permissions:
contents: read
pull-requests: write

node-audit:
uses: netresearch/.github/.github/workflows/node-audit.yml@main
permissions:
contents: read
with:
package-manager: yarn
audit-level: high
Loading