Skip to content

Commit 61b9f54

Browse files
committed
feat: OSSF scorecard
1 parent 8e71655 commit 61b9f54

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

‎.github/workflows/scorecard.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Scorecard supply-chain security
2+
3+
on:
4+
branch_protection_rule:
5+
schedule:
6+
- cron: '20 7 * * 1' # Mondays at 07:20 UTC
7+
push:
8+
branches: [main, maxday/ossf-scorecard]
9+
10+
permissions: read-all
11+
12+
jobs:
13+
analysis:
14+
name: Scorecard analysis
15+
runs-on: ubuntu-latest
16+
permissions:
17+
security-events: write
18+
id-token: write
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22+
with:
23+
persist-credentials: false
24+
25+
- name: Run analysis
26+
uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
27+
with:
28+
results_file: results.sarif
29+
results_format: sarif
30+
publish_results: true
31+
32+
- name: Upload artifact
33+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
34+
with:
35+
name: SARIF file
36+
path: results.sarif
37+
retention-days: 5
38+
39+
- name: Upload to code-scanning
40+
uses: github/codeql-action/upload-sarif@52cf1852265d99e9bea071b03366fc777a602909 # codeql-bundle-v2.27.4
41+
with:
42+
sarif_file: results.sarif

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## AWS Lambda Node.js Runtime
22

3+
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/aws/aws-lambda-nodejs-runtime/badge)](https://scorecard.dev/viewer/?uri=github.com/aws/aws-lambda-nodejs-runtime)
4+
35
This repository contains the source and build definition of the AWS Lambda Node.js runtime
46
image. The image holds everything a Node.js function needs to run on Lambda: Amazon Linux system
57
libraries, Node.js, the AWS SDK for JavaScript v3, root certificates and the Lambda

0 commit comments

Comments
 (0)