From b484c66f9ce5492f8fb36df089a15458d6f5ca93 Mon Sep 17 00:00:00 2001 From: Jaco Date: Sun, 13 Feb 2022 09:31:21 +0100 Subject: [PATCH] Disable yarn scripts on CI (#287) --- .github/workflows/lock.yml | 2 + .github/workflows/pr-any.yml | 2 + .github/workflows/push-master.yml | 11 ++-- .github/workflows/semgrep.yml | 2 + .github/workflows/stale.yml | 2 + package.json | 2 +- yarn.lock | 94 +++++++++++++++---------------- 7 files changed, 62 insertions(+), 53 deletions(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 7846c7bf..e48811f5 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -7,6 +7,8 @@ on: jobs: lock: runs-on: ubuntu-latest + env: + YARN_ENABLE_SCRIPTS: false steps: - uses: dessant/lock-threads@v2 with: diff --git a/.github/workflows/pr-any.yml b/.github/workflows/pr-any.yml index c4d13fea..ac48aa99 100644 --- a/.github/workflows/pr-any.yml +++ b/.github/workflows/pr-any.yml @@ -8,6 +8,8 @@ jobs: step: ['lint', 'test', 'build'] name: ${{ matrix.step }} runs-on: ubuntu-latest + env: + YARN_ENABLE_SCRIPTS: false steps: - uses: actions/checkout@v2 - name: ${{ matrix.step }} diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 81755af9..db5393e9 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -12,17 +12,18 @@ jobs: step: ['build:release'] name: ${{ matrix.step }} runs-on: ubuntu-latest + env: + YARN_ENABLE_SCRIPTS: false + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + GH_PAT: ${{ secrets.GH_PAT }} + GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@v2 with: fetch-depth: 0 token: ${{ secrets.GH_PAT }} - name: build - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - GH_PAT: ${{ secrets.GH_PAT }} - GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | yarn install --immutable | grep -v 'YN0013' ./scripts/install-build-deps.sh diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 9c4afb9a..d2339ac3 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -9,6 +9,8 @@ jobs: check: if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && (!github.event.pull_request || github.event.pull_request.head.repo.full_name == github.repository)" runs-on: ubuntu-latest + env: + YARN_ENABLE_SCRIPTS: false steps: - uses: actions/checkout@v2 - uses: returntocorp/semgrep-action@v1 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 5299d286..260d2f19 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,6 +6,8 @@ on: jobs: stale: runs-on: ubuntu-latest + env: + YARN_ENABLE_SCRIPTS: false steps: - uses: actions/stale@v3 with: diff --git a/package.json b/package.json index a04ca234..95290fea 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ }, "devDependencies": { "@babel/core": "^7.17.2", - "@polkadot/dev": "^0.65.52", + "@polkadot/dev": "^0.65.56", "fflate": "^0.7.3", "override-require": "^1.1.1" }, diff --git a/yarn.lock b/yarn.lock index 3fc85b51..399815fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1441,20 +1441,20 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^1.0.5": - version: 1.0.5 - resolution: "@eslint/eslintrc@npm:1.0.5" +"@eslint/eslintrc@npm:^1.1.0": + version: 1.1.0 + resolution: "@eslint/eslintrc@npm:1.1.0" dependencies: ajv: ^6.12.4 debug: ^4.3.2 - espree: ^9.2.0 + espree: ^9.3.1 globals: ^13.9.0 ignore: ^4.0.6 import-fresh: ^3.2.1 js-yaml: ^4.1.0 minimatch: ^3.0.4 strip-json-comments: ^3.1.1 - checksum: b35b50d7b65bd8acd92a05b6fb15ac62c0cefa40dfef0324ca5bf8632bf3679bab6e173c53b3ad1e1d837701cecdbd9c144b35f46588cdf4e046a9caa272488d + checksum: 784aa2157e2808b52bbbaf1d1cfca9a6ba0b2faaa3696eb7a1229d4b357400fbd8a6aa09a16e7ae0868ea075d3a8f365cf5928b6d05a1df47f40a1167423a4fa languageName: node linkType: hard @@ -1881,9 +1881,9 @@ __metadata: languageName: node linkType: hard -"@polkadot/dev@npm:^0.65.52": - version: 0.65.52 - resolution: "@polkadot/dev@npm:0.65.52" +"@polkadot/dev@npm:^0.65.56": + version: 0.65.56 + resolution: "@polkadot/dev@npm:0.65.56" dependencies: "@babel/cli": ^7.17.0 "@babel/core": ^7.17.2 @@ -1916,12 +1916,12 @@ __metadata: babel-plugin-styled-components: ^2.0.2 browserslist: ^4.19.1 coveralls: ^3.1.1 - eslint: ^8.8.0 + eslint: ^8.9.0 eslint-config-standard: ^16.0.3 eslint-import-resolver-node: ^0.3.6 eslint-plugin-header: ^3.1.1 eslint-plugin-import: ^2.25.4 - eslint-plugin-import-newlines: ^1.1.8 + eslint-plugin-import-newlines: ^1.2.0 eslint-plugin-node: ^11.1.0 eslint-plugin-promise: ^6.0.0 eslint-plugin-react: ^7.28.0 @@ -1939,11 +1939,11 @@ __metadata: jest-haste-map: ^27.5.1 jest-resolve: ^27.5.1 madge: ^5.0.1 - minimatch: ^3.0.5 + minimatch: ^3.1.1 mkdirp: ^1.0.4 prettier: ^2.5.1 rimraf: ^3.0.2 - rollup: ^2.67.1 + rollup: ^2.67.2 rollup-plugin-cleanup: ^3.2.1 typescript: ^4.5.5 yargs: ^17.3.1 @@ -1969,7 +1969,7 @@ __metadata: polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs - checksum: 1c0e02fec855db73fd9d17f6051419ce278d9572d1df9c1c1f7a5f0b0e46668729015dce07197a2d2f34db4c898e564d8ffeaab9483eef5915685975bf1e317f + checksum: abd9a516a2c2a0cf94c5d9c18e9b3733a32a29c8313b6a710bfbed9a8c91683f475af347a0d909a5835a0364f4855a9e5fa1026bca17698c3368bf7833cc22a3 languageName: node linkType: hard @@ -4269,14 +4269,14 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import-newlines@npm:^1.1.8": - version: 1.1.8 - resolution: "eslint-plugin-import-newlines@npm:1.1.8" +"eslint-plugin-import-newlines@npm:^1.2.0": + version: 1.2.0 + resolution: "eslint-plugin-import-newlines@npm:1.2.0" peerDependencies: eslint: ">=6.0.0" bin: import-linter: lib/index.js - checksum: f4bffded815faed4063c4d75a5d5941d08fc13435da54a0a3ea396695bdd8d91efde2262a0eb9debb6a9e8ef00ccbe5d97d078fa521f4be26942f2e4a5897c8c + checksum: aa6db47826dd11e775fd18a367b1cf14d411c371c6f5d421aeaca917b426934cff6b411de5c4253b03f8f962634d8b9d247ba874d5310296dc0a43690dc17d7e languageName: node linkType: hard @@ -4391,13 +4391,13 @@ __metadata: languageName: node linkType: hard -"eslint-scope@npm:^7.1.0": - version: 7.1.0 - resolution: "eslint-scope@npm:7.1.0" +"eslint-scope@npm:^7.1.1": + version: 7.1.1 + resolution: "eslint-scope@npm:7.1.1" dependencies: esrecurse: ^4.3.0 estraverse: ^5.2.0 - checksum: 2070470a0725438ed47075b2574a4c03cf59aa32648da8cff9e3548c84f6b0079cfdb9ee1dd7ab0bfe97011f64b2af5bfd4b69cf14a1292130dec661eec7914a + checksum: 9f6e974ab2db641ca8ab13508c405b7b859e72afe9f254e8131ff154d2f40c99ad4545ce326fd9fde3212ff29707102562a4834f1c48617b35d98c71a97fbf3e languageName: node linkType: hard @@ -4435,18 +4435,18 @@ __metadata: languageName: node linkType: hard -"eslint-visitor-keys@npm:^3.0.0, eslint-visitor-keys@npm:^3.1.0, eslint-visitor-keys@npm:^3.2.0": - version: 3.2.0 - resolution: "eslint-visitor-keys@npm:3.2.0" - checksum: fdadbb26f9e6417d3db7ad4f00bb0d573b6031c32fa72e8cdae32d038223faaeddff2ee443c90cb489bf774e75bff765c00912b8f9106d65e4f202ccd78c1b18 +"eslint-visitor-keys@npm:^3.0.0, eslint-visitor-keys@npm:^3.3.0": + version: 3.3.0 + resolution: "eslint-visitor-keys@npm:3.3.0" + checksum: d59e68a7c5a6d0146526b0eec16ce87fbf97fe46b8281e0d41384224375c4e52f5ffb9e16d48f4ea50785cde93f766b0c898e31ab89978d88b0e1720fbfb7808 languageName: node linkType: hard -"eslint@npm:^8.8.0": - version: 8.8.0 - resolution: "eslint@npm:8.8.0" +"eslint@npm:^8.9.0": + version: 8.9.0 + resolution: "eslint@npm:8.9.0" dependencies: - "@eslint/eslintrc": ^1.0.5 + "@eslint/eslintrc": ^1.1.0 "@humanwhocodes/config-array": ^0.9.2 ajv: ^6.10.0 chalk: ^4.0.0 @@ -4454,10 +4454,10 @@ __metadata: debug: ^4.3.2 doctrine: ^3.0.0 escape-string-regexp: ^4.0.0 - eslint-scope: ^7.1.0 + eslint-scope: ^7.1.1 eslint-utils: ^3.0.0 - eslint-visitor-keys: ^3.2.0 - espree: ^9.3.0 + eslint-visitor-keys: ^3.3.0 + espree: ^9.3.1 esquery: ^1.4.0 esutils: ^2.0.2 fast-deep-equal: ^3.1.3 @@ -4483,18 +4483,18 @@ __metadata: v8-compile-cache: ^2.0.3 bin: eslint: bin/eslint.js - checksum: 41a7e85bf84cf9f2d758ef3e8d08020a39a2836703728b59535684681349bd021c2c6e24174462b844a914870d707d2151e0371198899d957b444de91adaa435 + checksum: 8efecdb9752ee6cb4d2787a14e00cbeab29562ed95dd71c6f3f8ac410426a067d5aa659416d2290e46ca44bc5607e6a6e6c62f814694d8639f80666f522022a7 languageName: node linkType: hard -"espree@npm:^9.2.0, espree@npm:^9.3.0": - version: 9.3.0 - resolution: "espree@npm:9.3.0" +"espree@npm:^9.3.1": + version: 9.3.1 + resolution: "espree@npm:9.3.1" dependencies: acorn: ^8.7.0 acorn-jsx: ^5.3.1 - eslint-visitor-keys: ^3.1.0 - checksum: c0f1885c4eab652f9be08eb9228cea0df046b559b29d4aed8d6590ea9bd60177d4cb245d204a6f737a79a096861bb4ab8e480aeb8c1dbafef5beec1157353ce4 + eslint-visitor-keys: ^3.3.0 + checksum: d7161db30b65427e0799383699ac4c441533a38faee005153694b68b933ba7a24666680edfc490fa77e3a84a22dbd955768034a6f811af5049774eead83063a5 languageName: node linkType: hard @@ -7099,12 +7099,12 @@ fsevents@~2.1.2: languageName: node linkType: hard -"minimatch@npm:^3.0.4, minimatch@npm:^3.0.5": - version: 3.0.5 - resolution: "minimatch@npm:3.0.5" +"minimatch@npm:^3.0.4, minimatch@npm:^3.1.1": + version: 3.1.1 + resolution: "minimatch@npm:3.1.1" dependencies: brace-expansion: ^1.1.7 - checksum: a3b84b426eafca947741b864502cee02860c4e7b145de11ad98775cfcf3066fef422583bc0ffce0952ddf4750c1ccf4220b1556430d4ce10139f66247d87d69e + checksum: e9e3772e4ea06ea3a888d39bc7690d3c812ee7e5a70c2d2f568ccadac0249a027f865589d19ad03ed937e6ca3b4ad35f85411db9670f7877d8fc2ed452f1cd37 languageName: node linkType: hard @@ -8379,9 +8379,9 @@ resolve@^2.0.0-next.3: languageName: node linkType: hard -"rollup@npm:^2.67.1": - version: 2.67.1 - resolution: "rollup@npm:2.67.1" +"rollup@npm:^2.67.2": + version: 2.67.2 + resolution: "rollup@npm:2.67.2" dependencies: fsevents: ~2.3.2 dependenciesMeta: @@ -8389,7 +8389,7 @@ resolve@^2.0.0-next.3: optional: true bin: rollup: dist/bin/rollup - checksum: 4320927ae9d42abf0a72ccdfd14303f7b6d6908ec94be953900a41bd4c0bbba3131887c3925dec65361a3e394cb572a4fa8e1f1be4db587a775068ad71d42acd + checksum: 9aca5251ba4b441064183cde2394b91567259002d68086bdd3906db66d55dd148ab27e57c51eb53830d7b9b813c2d4e834b7735d65e2a869780bc639d4a20c38 languageName: node linkType: hard @@ -8398,7 +8398,7 @@ resolve@^2.0.0-next.3: resolution: "root-workspace-0b6124@workspace:." dependencies: "@babel/core": ^7.17.2 - "@polkadot/dev": ^0.65.52 + "@polkadot/dev": ^0.65.56 fflate: ^0.7.3 override-require: ^1.1.1 languageName: unknown