Skip to content

Commit 5cd1459

Browse files
Merge pull request #126 from hCaptcha/damian/ENG-4528-update-github-action-permissions-for-h-captcha-vue
chore(permissions): Update workflow permissions
2 parents 0dbc78a + bde8616 commit 5cd1459

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,33 @@ on:
1111
pull_request:
1212
branches:
1313
- master
14+
permissions:
15+
contents: read
1416

1517
jobs:
1618
build:
1719
name: "Build & Test"
20+
permissions:
21+
contents: read
1822
runs-on: ubuntu-latest
1923
steps:
2024
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
persist-credentials: false
2127
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2228
with:
23-
node-version-file: '.nvmrc'
24-
registry-url: 'https://registry.npmjs.org'
25-
cache: 'yarn'
29+
node-version-file: ".nvmrc"
30+
registry-url: "https://registry.npmjs.org"
31+
cache: "yarn"
2632

2733
- name: Install Lerna
2834
run: yarn global add lerna@6
2935

3036
- run: yarn setup
3137
- run: yarn lint --stream
3238
- run: yarn build --stream
39+
env:
40+
NODE_OPTIONS: --openssl-legacy-provider
3341
- run: yarn test --stream
3442
- run: cp README.md packages/vue2 && cp README.md packages/vue3
3543
- run: cp -r packages/vue2/types packages/vue3

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.14
1+
20

packages/vue2/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
},
2424
"scripts": {
2525
"test": "npm run test:unit && npm run test:types",
26-
"test:unit": "vue-cli-service test:unit",
26+
"test:unit": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service test:unit",
2727
"test:types": "tsc -p types/__tests__",
28-
"lint": "vue-cli-service lint --no-fix",
29-
"lint:fix": "vue-cli-service lint",
30-
"build": "vue-cli-service build --target lib src/main.js",
28+
"lint": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service lint --no-fix",
29+
"lint:fix": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service lint",
30+
"build": "NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build --target lib src/main.js",
3131
"serve": "npm run --prefix examples/traditional-vue2 serve",
3232
"serve:ts": "npm run --prefix examples/ts-vue2 serve"
3333
},

0 commit comments

Comments
 (0)