Skip to content

Commit 8b1cf6b

Browse files
authored
Merge pull request #68 from kommitters/v1.0
Release v1.0.9
2 parents 44260ce + e7ec6df commit 8b1cf6b

File tree

9 files changed

+1711
-1000
lines changed

9 files changed

+1711
-1000
lines changed

.github/workflows/ci.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ jobs:
1616
- name: Harden Runner
1717
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
1818
with:
19-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
19+
disable-sudo: true
20+
egress-policy: block
21+
allowed-endpoints: >
22+
coveralls.io:443
23+
github.com:443
24+
registry.yarnpkg.com:443
2025
21-
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
26+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
2227
- name: Install modules
2328
run: yarn
2429
- name: Run tests

.github/workflows/codeql.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ jobs:
4343
- name: Harden Runner
4444
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
4545
with:
46-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
46+
disable-sudo: true
47+
egress-policy: block
48+
allowed-endpoints: >
49+
api.github.com:443
50+
github.com:443
4751
4852
- name: Checkout repository
49-
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
53+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
5054

5155
# Initializes the CodeQL tools for scanning.
5256
- name: Initialize CodeQL

.github/workflows/publish.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ jobs:
1212
- name: Harden Runner
1313
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
1414
with:
15-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
15+
disable-sudo: true
16+
egress-policy: block
17+
allowed-endpoints: >
18+
github.com:443
19+
registry.npmjs.org:443
20+
registry.yarnpkg.com:443
1621
17-
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
22+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
1823
# Setup .npmrc file to publish to npm
19-
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
24+
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
2025
with:
2126
node-version: "16.x"
2227
registry-url: "https://registry.npmjs.org"

.github/workflows/scorecards.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,25 @@ jobs:
2424
- name: Harden Runner
2525
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
2626
with:
27-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
27+
disable-sudo: true
28+
egress-policy: block
29+
allowed-endpoints: >
30+
api.github.com:443
31+
api.osv.dev:443
32+
api.securityscorecards.dev:443
33+
bestpractices.coreinfrastructure.org:443
34+
fulcio.sigstore.dev:443
35+
github.com:443
36+
rekor.sigstore.dev:443
37+
sigstore-tuf-root.storage.googleapis.com:443
2838
2939
- name: "Checkout code"
30-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
40+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
3141
with:
3242
persist-credentials: false
3343

3444
- name: "Run analysis"
35-
uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
45+
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
3646
with:
3747
results_file: results.sarif
3848
results_format: sarif
@@ -51,14 +61,14 @@ jobs:
5161
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5262
# format to the repository Actions tab.
5363
- name: "Upload artifact"
54-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
64+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
5565
with:
5666
name: SARIF file
5767
path: results.sarif
5868
retention-days: 5
5969

6070
# Upload the results to GitHub's code scanning dashboard.
6171
- name: "Upload to code-scanning"
62-
uses: github/codeql-action/upload-sarif@c7f292ea4f542c473194b33813ccd4c207a6c725 # v2.1.21
72+
uses: github/codeql-action/upload-sarif@959cbb7472c4d4ad70cdfe6f4976053fe48ab394 # v2.1.37
6373
with:
6474
sarif_file: results.sarif

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.0.9 (13.01.2023)
4+
* Update all dependencies.
5+
* Block egress traffic in GitHub Actions.
6+
* Add stability badge in README.
7+
38
## 1.0.8 (28.12.2022)
49
* Add Renovate as dependency update tool.
510
* Keep read-only permissions in CI workflow.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# EditorJS BreakLine Tool
2+
3+
![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)
24
![](https://badgen.net/badge/Editor.js/v2.0/blue)
35
[![Coverage Status](https://coveralls.io/repos/github/kommitters/editorjs-break-line/badge.svg)](https://coveralls.io/github/kommitters/editorjs-break-line)
46
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/6467/badge)](https://bestpractices.coreinfrastructure.org/projects/6467)

package.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "editorjs-break-line",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"keywords": [
55
"tool",
66
"divider",
@@ -32,18 +32,19 @@
3232
"@babel/core": "^7.10.2",
3333
"@babel/preset-env": "^7.10.2",
3434
"@testing-library/jest-dom": "^5.9.0",
35-
"babel-jest": "^27.2.1",
36-
"babel-loader": "^8.1.0",
37-
"css-loader": "^3.5.3",
38-
"eslint": "^7.1.0",
39-
"eslint-config-airbnb-base": "^14.1.0",
35+
"babel-jest": "^29.0.0",
36+
"babel-loader": "^9.0.0",
37+
"css-loader": "^6.0.0",
38+
"eslint": "^8.0.0",
39+
"eslint-config-airbnb-base": "^15.0.0",
4040
"eslint-plugin-import": "^2.20.2",
41-
"eslint-plugin-jest": "^23.13.2",
42-
"jest": "^27.2.1",
43-
"style-loader": "^1.2.1",
41+
"eslint-plugin-jest": "^27.0.0",
42+
"jest": "^29.0.0",
43+
"jest-environment-jsdom": "^29.3.1",
44+
"style-loader": "^3.0.0",
4445
"svg-inline-loader": "^0.8.2",
4546
"webpack": "^5.53.0",
46-
"webpack-cli": "^4.8.0"
47+
"webpack-cli": "^5.0.0"
4748
},
4849
"jest": {
4950
"setupFilesAfterEnv": [

test/config/assetsTransform.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
process() {
3-
return 'module.exports = {};';
3+
return { code: 'module.exports = {};' };
44
},
55
getCacheKey() {
66
return 'assetsTransform';

0 commit comments

Comments
 (0)