From ce257f1d9e261987fb7f622801b6f8d5129651e9 Mon Sep 17 00:00:00 2001 From: Gerald Iakobinyi-Pich Date: Fri, 26 Jul 2024 09:34:25 +0300 Subject: [PATCH] fix: add required permission to all interface workflows --- .github/workflows/interface-ci-production.yml | 2 ++ .github/workflows/interface-ci-review.yml | 12 ++++++------ .github/workflows/interface-ci-staging.yml | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/interface-ci-production.yml b/.github/workflows/interface-ci-production.yml index b8960d3..e2cf526 100644 --- a/.github/workflows/interface-ci-production.yml +++ b/.github/workflows/interface-ci-production.yml @@ -39,6 +39,8 @@ jobs: deploy-app: needs: [ui-test] runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/interface-ci-review.yml b/.github/workflows/interface-ci-review.yml index 8715721..af9842c 100644 --- a/.github/workflows/interface-ci-review.yml +++ b/.github/workflows/interface-ci-review.yml @@ -25,13 +25,13 @@ jobs: ref: ${{ steps.ref.outputs.refspec }} fetch-depth: 0 - # - name: Install UI dependencies - # working-directory: ./interface - # run: yarn --frozen-lockfile && yarn build + - name: Install UI dependencies + working-directory: ./interface + run: yarn --frozen-lockfile && yarn build - # - name: Run tests - # working-directory: ./interface - # run: yarn test + - name: Run tests + working-directory: ./interface + run: yarn test outputs: version_tag: ${{ steps.ref.outputs.version_tag }} diff --git a/.github/workflows/interface-ci-staging.yml b/.github/workflows/interface-ci-staging.yml index f01d2e6..d007dcc 100644 --- a/.github/workflows/interface-ci-staging.yml +++ b/.github/workflows/interface-ci-staging.yml @@ -39,6 +39,8 @@ jobs: deploy-app: needs: [ui-test] runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v3