Skip to content

Commit

Permalink
Reuse OSSF Scorecard from nodenv/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed May 30, 2024
1 parent 8ec958a commit 693b6ce
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,16 @@ on:
push:
pull_request:
workflow_dispatch:
schedule: # monthly (10th)
- cron: '0 0 10 * *' # https://crontab.guru/#0_0_10_*_*
schedule: [{cron: '0 0 10 * *'}] # monthly https://crontab.guru/#0_0_10_*_*

permissions: read-all

jobs:
test:
uses: nodenv/.github/.github/workflows/test.yml@v4
permissions: {contents: read, packages: read, statuses: write}

ossf-scorecard:
if: github.ref_name == 'main'
permissions: {id-token: write, security-events: write}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ossf/scorecard-action@v2.3.3
with:
results_file: results.sarif
results_format: sarif
publish_results: true
- uses: actions/upload-artifact@v4
with:
name: results.sarif
path: results.sarif
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
permissions:
contents: read
packages: read
id-token: write
security-events: write
statuses: write

0 comments on commit 693b6ce

Please sign in to comment.