File tree Expand file tree Collapse file tree 5 files changed +81
-0
lines changed
Expand file tree Collapse file tree 5 files changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Stack Health Check
2+ on :
3+ pull_request :
4+ push :
5+ branches : [main]
6+ schedule :
7+ - cron : ' 0 9 * * 1' # Weekly Monday 9am
8+
9+ jobs :
10+ health-check :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ pull-requests : write
14+ contents : read
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : Releaserun/releaserun-action@v2
18+ with :
19+ fail-on : ' D'
20+ comment : ' true'
Original file line number Diff line number Diff line change 1+ FROM node:20-alpine
2+ WORKDIR /app
3+ COPY package*.json ./
4+ RUN npm ci --production
5+ COPY . .
6+ EXPOSE 3000
7+ CMD ["node" , "index.js" ]
Original file line number Diff line number Diff line change 1+ # ReleaseRun Action Example: Node.js
2+
3+ This repo shows how to use [ ReleaseRun's GitHub Action] ( https://github.com/marketplace/actions/releaserun-stack-health-check ) on a Node.js project.
4+
5+ ## What it does
6+
7+ The action scans your ` package.json ` and ` Dockerfile ` , checks every runtime dependency against [ ReleaseRun] ( https://releaserun.com ) for:
8+
9+ - ** Version freshness** (are you on the latest stable?)
10+ - ** EOL status** (is your runtime end-of-life?)
11+ - ** Known CVEs** (any vulnerabilities in your stack?)
12+ - ** Overall health grade** (A through F)
13+
14+ Results appear as a PR comment with badges. If any technology scores below your threshold, the check fails.
15+
16+ ## Setup
17+
18+ Copy ` .github/workflows/stack-health.yml ` into your own repo. That's it. No API keys, no config files, no signup.
19+
20+ ## Example output
21+
22+ The action posts a PR comment like:
23+
24+ | Technology | Version | Grade | Status |
25+ | -----------| ---------| -------| --------|
26+ | Node.js | 20.x | A | Current LTS |
27+ | Express | 4.21 | A | Current |
28+ | PostgreSQL | 8.13 | B | Supported |
29+ | TypeScript | 5.7 | A | Current |
30+
31+ ## Links
32+
33+ - [ GitHub Action Marketplace] ( https://github.com/marketplace/actions/releaserun-stack-health-check )
34+ - [ ReleaseRun Tools] ( https://releaserun.com/tools/ )
35+ - [ Badge Service] ( https://releaserun.com/badges/docs/ )
Original file line number Diff line number Diff line change 1+ const express = require ( 'express' ) ;
2+ const app = express ( ) ;
3+ app . get ( '/' , ( req , res ) => res . json ( { status : 'ok' } ) ) ;
4+ app . listen ( 3000 ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " releaserun-action-example-node" ,
3+ "version" : " 1.0.0" ,
4+ "description" : " Example: ReleaseRun GitHub Action with a Node.js project" ,
5+ "engines" : {
6+ "node" : " >=20.0.0"
7+ },
8+ "dependencies" : {
9+ "express" : " ^4.21.0" ,
10+ "pg" : " ^8.13.0"
11+ },
12+ "devDependencies" : {
13+ "typescript" : " ^5.7.0"
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments