Skip to content

Commit 5e53284

Browse files
authored
release: 1.0.1 (#59)
* release: 1.0.1 * chore: Corrected wrong scoping for some actions
1 parent 0ed3df2 commit 5e53284

13 files changed

Lines changed: 378 additions & 263 deletions

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
contents: read
1818
steps:
1919
- name: Harden the runner (audit all outbound calls)
20-
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
20+
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
2121
with:
2222
egress-policy: audit
2323
- name: Checkout
24-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
2626
persist-credentials: false
2727
- name: Setup Node
28-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
28+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2929
with:
3030
node-version: 20
3131
cache: npm
@@ -46,15 +46,15 @@ jobs:
4646
contents: read
4747
steps:
4848
- name: Harden the runner (audit all outbound calls)
49-
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
49+
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
5050
with:
5151
egress-policy: audit
5252
- name: Checkout
53-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
53+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5454
with:
5555
persist-credentials: false
5656
- name: Setup Node
57-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
57+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
5858
with:
5959
node-version: 20
6060
cache: npm

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ jobs:
2525
language: ['javascript-typescript']
2626
steps:
2727
- name: Harden the runner (audit all outbound calls)
28-
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
28+
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
2929
with:
3030
egress-policy: audit
3131
- name: Checkout repository
32-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3333
with:
3434
persist-credentials: false
3535
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
36+
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
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@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
41+
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7

.github/workflows/scorecard.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ jobs:
3535
pull-requests: read # map merged commits to their PRs
3636
steps:
3737
- name: Harden the runner (audit all outbound calls)
38-
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
38+
uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
3939
with:
4040
egress-policy: audit
4141
- name: Checkout code
42-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
42+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4343
with:
4444
persist-credentials: false
4545
- name: Run analysis
46-
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
46+
uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4
4747
with:
4848
results_file: results.sarif
4949
results_format: sarif
@@ -59,6 +59,6 @@ jobs:
5959
path: results.sarif
6060
retention-days: 5
6161
- name: Upload to code-scanning
62-
uses: github/codeql-action/upload-sarif@54f647b7e1bb85c95cddabcd46b0c578ec92bc1a # v4.36.3
62+
uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7
6363
with:
6464
sarif_file: results.sarif

.github/workflows/sign-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ jobs:
1313
contents: write # to attach .sigstore bundles to the release
1414
id-token: write # OIDC for keyless signing
1515
steps:
16-
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
16+
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
1717
with:
1818
egress-policy: audit
19-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
with:
2121
ref: ${{ github.event.release.tag_name }}
2222
persist-credentials: false
2323
# Build the tagged release's dist so we sign exactly what was released
2424
# (and the same bytes slsa-provenance attests), not stale committed dist
2525
# from whatever branch the workflow happened to check out.
26-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
26+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2727
with:
2828
node-version: 22
2929
- run: npm ci --ignore-scripts
3030
- run: npm run build
31-
- uses: sigstore/gh-action-sigstore-python@5b79a39c381910c090341a2c9b0bf022c8b387e1 # v3.0.1
31+
- uses: sigstore/gh-action-sigstore-python@790bc6befb9d733738f18d8f895854b453640ec9 # v3.0.1
3232
with:
3333
inputs: dist/fortify.min.js dist/fortify.js
3434
# Re-uploads signed artefacts to the release that triggered this run.

.github/workflows/slsa-provenance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ jobs:
1414
id-token: write
1515
attestations: write
1616
steps:
17-
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
17+
- uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
1818
with:
1919
egress-policy: audit
20-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
with:
2222
ref: ${{ github.event.release.tag_name }}
2323
persist-credentials: false
24-
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
24+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
2525
with:
2626
node-version: 22
2727
- run: npm ci --ignore-scripts
2828
- run: npm run build
2929
- id: attest
30-
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
30+
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ could reach. Pin both with SRI so a bad CDN day fails closed instead of open:
7777

7878
```html
7979
<script
80-
src="https://cdn.jsdelivr.net/npm/dompurify@3.4.12/dist/purify.min.js"
81-
integrity="sha384-piCcpDdJ7qVeK4Tv8Z6Hpcr3ZBIgP16TxQTPVfsLFdZ5uDgwc3Y8Ho7oUnqf12qu"
80+
src="https://cdn.jsdelivr.net/npm/dompurify@3.4.14/dist/purify.min.js"
81+
integrity="sha384-46dPGH1XlTmj7bc50bqLjTdORXs/3EP2QpA/6EWbelYWOY9VGp+87RT61S3Mcslb"
8282
crossorigin="anonymous"
8383
></script>
8484
<script
8585
src="https://cdn.jsdelivr.net/npm/domfortify@1.0.0/dist/fortify.min.js"
86-
integrity="sha384-UTHngTnDjkP35mHLyvskA7klpBRoONpcOpENk+XQEi2plYIGb4WKpYIgci8vV3PG"
86+
integrity="sha384-c6Zw5oPYE/XugJ3ElmZEwethwwBKRAKk5RCmtrXmHqlh2bZyvwmMrMo8Ok63rp9a"
8787
crossorigin="anonymous"
8888
></script>
8989
```

dist/fortify.cjs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fortify.es.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! DOMFortify 1.0.0 | (c) Cure53 and contributors | (MPL-2.0 OR Apache-2.0) */
1+
/*! DOMFortify 1.0.1 | (c) Cure53 and contributors | (MPL-2.0 OR Apache-2.0) */
22
// Cached up front so later prototype pollution or clobbering can't swap hasOwnProperty out.
33
const hasOwn = Object.prototype.hasOwnProperty;
44
/** True only for an own (non-inherited) property, so a polluted prototype is never consulted. */
@@ -78,7 +78,7 @@ function urlMatches(pattern, url) {
7878
* - Fails closed: no sanitizer means sinks throw, never leak.
7979
* - Only covers Trusted Types sinks; inline handlers / style / URL props stay open.
8080
*/
81-
const VERSION = '1.0.0';
81+
const VERSION = '1.0.1';
8282
// Natives captured up front, so later prototype pollution or clobbering can't swap them out.
8383
const root = typeof globalThis !== 'undefined' ? globalThis : window;
8484
const doc = typeof document !== 'undefined' ? document : undefined;

dist/fortify.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)