Skip to content

Commit 0ed3df2

Browse files
authored
release: 1.0.0 (#46)
* release: 1.0.0 * chore: updated workflows to also cover and observe 1.x branch
1 parent 4a355b9 commit 0ed3df2

40 files changed

Lines changed: 4188 additions & 1339 deletions

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build & Test
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, '*.x']
66
pull_request:
7-
branches: [main]
7+
branches: [main, '*.x']
88

99
# Default token to read-only; jobs widen only what they need.
1010
permissions:
@@ -21,14 +21,16 @@ jobs:
2121
with:
2222
egress-policy: audit
2323
- name: Checkout
24-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
24+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2525
with:
2626
persist-credentials: false
2727
- name: Setup Node
2828
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2929
with:
3030
node-version: 20
3131
cache: npm
32+
- name: Check package.json file references
33+
run: node scripts/check-referenced-files.mjs
3234
- run: npm ci
3335
- run: npm run lint
3436
- run: npm run typecheck
@@ -48,7 +50,7 @@ jobs:
4850
with:
4951
egress-policy: audit
5052
- name: Checkout
51-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
53+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5254
with:
5355
persist-credentials: false
5456
- name: Setup Node
@@ -58,5 +60,5 @@ jobs:
5860
cache: npm
5961
- run: npm ci
6062
- run: npm run build
61-
- run: npx playwright install --with-deps chromium
63+
- run: npx playwright install --with-deps chromium firefox webkit
6264
- run: npm run test:browser

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CodeQL
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, '*.x']
66
pull_request:
7-
branches: [main]
7+
branches: [main, '*.x']
88
schedule:
99
- cron: '0 19 * * 4'
1010

@@ -29,13 +29,13 @@ jobs:
2929
with:
3030
egress-policy: audit
3131
- name: Checkout repository
32-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
32+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3333
with:
3434
persist-credentials: false
3535
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
36+
uses: github/codeql-action/init@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
3737
with:
3838
languages: ${{ matrix.language }}
3939
config-file: ./.github/codeql/codeql-config.yml
4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
41+
uses: github/codeql-action/analyze@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3

.github/workflows/publish.yml

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

.github/workflows/scorecard.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ name: Scorecard supply-chain security
77
on:
88
# For the Branch-Protection check; only the default branch is supported.
99
branch_protection_rule:
10-
# Keeps the Maintained check fresh and re-evaluates after CodeQL has settled.
10+
# Keeps the Maintained check fresh and re-evaluates after CodeQL has settled. Weekly is enough:
11+
# the score signals do not move day to day, and Friday lands just after the Thursday CodeQL run.
1112
schedule:
12-
- cron: '24 17 * * *'
13+
- cron: '24 17 * * 5'
1314
# Lets a maintainer trigger the first run (and re-runs) by hand from the Actions
14-
# tab, instead of waiting for the daily cron - useful to publish the first report.
15+
# tab, instead of waiting for the weekly cron - useful to publish the first report.
1516
workflow_dispatch:
1617
# NOTE: no 'push' trigger on purpose - running at merge time races the CodeQL
1718
# scan of the just-merged commit and makes the SAST check read as unchecked.
@@ -38,7 +39,7 @@ jobs:
3839
with:
3940
egress-policy: audit
4041
- name: Checkout code
41-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
42+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4243
with:
4344
persist-credentials: false
4445
- name: Run analysis
@@ -58,6 +59,6 @@ jobs:
5859
path: results.sarif
5960
retention-days: 5
6061
- name: Upload to code-scanning
61-
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
62+
uses: github/codeql-action/upload-sarif@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
6263
with:
6364
sarif_file: results.sarif

.github/workflows/sign-release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ jobs:
1616
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
1717
with:
1818
egress-policy: audit
19-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
19+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2020
with:
21+
ref: ${{ github.event.release.tag_name }}
2122
persist-credentials: false
23+
# Build the tagged release's dist so we sign exactly what was released
24+
# (and the same bytes slsa-provenance attests), not stale committed dist
25+
# from whatever branch the workflow happened to check out.
26+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
27+
with:
28+
node-version: 22
29+
- run: npm ci --ignore-scripts
30+
- run: npm run build
2231
- uses: sigstore/gh-action-sigstore-python@5b79a39c381910c090341a2c9b0bf022c8b387e1 # v3.0.1
2332
with:
2433
inputs: dist/fortify.min.js dist/fortify.js

.github/workflows/slsa-provenance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
1818
with:
1919
egress-policy: audit
20-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
20+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2121
with:
2222
ref: ${{ github.event.release.tag_name }}
2323
persist-credentials: false
@@ -27,7 +27,7 @@ jobs:
2727
- run: npm ci --ignore-scripts
2828
- run: npm run build
2929
- id: attest
30-
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
30+
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
3131
with:
3232
subject-path: 'dist/fortify.js,dist/fortify.min.js,dist/fortify.cjs.js,dist/fortify.es.mjs'
3333
- name: Upload provenance to release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
2+
dist/fortify.cov.*
23
coverage/
34
.nyc_output/
45
*.log

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# .github/CODEOWNERS
2+
# All changes require review from a core maintainer
3+
* @x00mario

0 commit comments

Comments
 (0)