From e4318720c9e0102d1cc698ee184420cf6bba2ade Mon Sep 17 00:00:00 2001 From: jaybuidl Date: Mon, 13 Jan 2025 19:25:23 +0000 Subject: [PATCH 1/2] fix: contracts testing workflow --- .github/workflows/contracts-testing.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/contracts-testing.yml b/.github/workflows/contracts-testing.yml index 72d261633..db3baa32a 100644 --- a/.github/workflows/contracts-testing.yml +++ b/.github/workflows/contracts-testing.yml @@ -38,16 +38,23 @@ jobs: registry.yarnpkg.com:443 registry.npmjs.org:443 54.185.253.63:443 - - - name: Setup Node.js environment - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 - with: - node-version: 18.x - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: submodules: recursive - + + - name: Set up corepack (for yarn) + run: | + corepack enable + corepack prepare yarn@4.5.1 --activate + yarn set version 4.5.1 + + - name: Setup Node.js environment + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version: 20.x + cache: yarn + - name: Cache node modules uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 env: @@ -61,7 +68,9 @@ jobs: ${{ runner.os }}-build-${{ secrets.CACHE_VERSION }}-${{ env.cache-name }}- - name: Install contracts dependencies - run: yarn workspace @kleros/kleros-v2-contracts install + run: | + # TODO: re-enable hardened mode once the kleros-app resolution is fixed + YARN_ENABLE_HARDENED_MODE=0 yarn workspace @kleros/kleros-v2-contracts install - name: Install Foundry uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # v1.2.0 From b371250568153699b6e8c75f824f51bc4ad35610 Mon Sep 17 00:00:00 2001 From: jaybuidl Date: Tue, 14 Jan 2025 13:18:43 +0000 Subject: [PATCH 2/2] chore: removal of the pr-labels workflow which never worked --- .github/workflows/pr-labels.yml | 39 --------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/pr-labels.yml diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml deleted file mode 100644 index 20f4fe3c8..000000000 --- a/.github/workflows/pr-labels.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Add PR labels - -on: - pull_request: - types: [opened, edited] - branches-ignore: - - 'dependabot/**' - - 'renovate/**' - -permissions: # added using https://github.com/step-security/secure-workflows - contents: read - issues: read - pull-requests: write - -jobs: - copy-labels: - runs-on: ubuntu-latest - name: Copy labels from linked issues - steps: - - name: Harden Runner - uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.5.0 - with: - disable-sudo: true - egress-policy: block - allowed-endpoints: > - yarnpkg.com:443 - github.com:443 - nightly.yarnpkg.com:443 - nodejs.org:443 - objects.githubusercontent.com:443 - registry.yarnpkg.com:443 - registry.npmjs.org:443 - 54.185.253.63:443 - - - name: copy-labels - uses: michalvankodev/copy-issue-labels@f54e957e58fc976eba5ffa36e1a1030572dbb78d # v1.3.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} -