Skip to content

Commit 81e1b24

Browse files
authored
v6.2 (#301)
improved deployment flow
1 parent 6b0269a commit 81e1b24

File tree

13 files changed

+93
-177
lines changed

13 files changed

+93
-177
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,4 @@ jobs:
2929
- run: npm ci
3030
- run: npm run build
3131

32-
# === SNYK integration ===
33-
- name: Install Snyk
34-
run: npm install -g snyk
35-
36-
- name: Auth Snyk
37-
run: snyk auth ${{ secrets.SNYK_TOKEN }}
38-
39-
- name: Snyk Test (fail on high/critical)
40-
run: snyk test --severity-threshold=high
41-
42-
# === Publish (only runs if Snyk passes) ===
4332
- run: cd out && npm publish --access public --provenance

.github/workflows/snyk-pr.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Snyk PR Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
security-events: write
11+
12+
jobs:
13+
snyk:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "20"
24+
cache: "npm"
25+
26+
- name: Install deps
27+
run: npm ci
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Test
33+
run: npm run build
34+
35+
# === SNYK integration ===
36+
- name: Install Snyk
37+
run: npm install -g snyk
38+
39+
- name: Auth Snyk
40+
run: snyk auth ${{ secrets.SNYK_TOKEN }}
41+
42+
- name: Snyk Test (fail on high/critical)
43+
run: snyk test --severity-threshold=high

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ _Get SARIF output including exact line numbers of violations._
289289

290290
## Installation
291291

292-
`lightning-flow-scanner-core` is published to **npm** and **scanned with Snyk during release**.
292+
`lightning-flow-scanner-core` is [scanned with Snyk](https://github.com/Flow-Scanner/lightning-flow-scanner-core?tab=security-ov-file) prior to publication on **npm**.
293293

294294
[![npm version](https://img.shields.io/npm/v/@flow-scanner/lightning-flow-scanner-core?label=npm)](https://www.npmjs.com/package/@flow-scanner/lightning-flow-scanner-core) [![Known Vulnerabilities](https://snyk.io/test/github/Flow-Scanner/lightning-flow-scanner-core/badge.svg)](https://snyk.io/test/github/Flow-Scanner/lightning-flow-scanner-core)
295295

SECURITY.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
## Security Practices
44

55
- Code is open-source and peer-reviewed by the community.
6-
- Vulnerabilities can be reported privately via GitHub security features.
7-
- Changes to the repository are scanned and reviewed before merging.
8-
- Tokenless Publishing with scoped npm packages and releases via GitHub Actions Trusted Publishing (OIDC).
6+
- Vulnerabilities can be reported privately via [GitHub security reporting](https://github.com/Flow-Scanner/lightning-flow-scanner-core/security).
7+
- All changes are **scanned with Snyk** and reviewed before merging.
8+
- Releases are published to npm using **GitHub Actions Trusted Publishing (OIDC)**.
9+
- Tags (`v*`) trigger automated `npm publish`, providing a full audit trail.
910

1011
## Reporting a Vulnerability
1112

assets/example-flows/.forceignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

assets/example-flows/.gitignore

Lines changed: 0 additions & 41 deletions
This file was deleted.

assets/example-flows/.prettierignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

assets/example-flows/.prettierrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

assets/example-flows/jest.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

assets/example-flows/package.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)