From 10fd71dfe14437ba8734eb2d71e7c236cbc126c4 Mon Sep 17 00:00:00 2001 From: Dmytro Svyrydenko Date: Mon, 16 Sep 2024 23:30:47 +0200 Subject: [PATCH 1/3] chore: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bb1b736c..40fbabc9 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ There is also a backend that provides all information and API, but currently, it 4. Build it with `npm run build` ## Additional information -1. Backend repository shares some TypeScript types using **git submodules** functionality, that can be accessible by importing them from `shared-types`. Since the backend application is private, these types are available only to contributors. For convenience, there's a `git-pull` npm script that pulls all the submodules. To init git submodules run `git submodule update --init --recursive` command. +1. Backend repository shares some TypeScript types using **git submodules** functionality, that can be accessible by importing them from `shared-types`. For convenience, there's a `git-pull` npm script that pulls all the submodules. To init git submodules run `git submodule update --init --recursive` command. From 567b2956fb4e62407cf0f06e35bc1fe517f997dc Mon Sep 17 00:00:00 2001 From: Dmytro Svyrydenko Date: Mon, 16 Sep 2024 23:31:02 +0200 Subject: [PATCH 2/3] chore: bump backend version --- backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend b/backend index fa424fcb..c3d86e79 160000 --- a/backend +++ b/backend @@ -1 +1 @@ -Subproject commit fa424fcb2771e287b127bf2a948c649b3bf74de5 +Subproject commit c3d86e79a47ed4ed5aa0a3969d40f29d312eca75 From 9229a37a3e9d7d78c41d7c4834d40be1541eb1df Mon Sep 17 00:00:00 2001 From: Dmytro Svyrydenko Date: Mon, 16 Sep 2024 23:40:22 +0200 Subject: [PATCH 3/3] fix: Patch GitHub Actions configs --- .github/workflows/check-source-code.yml | 36 +++++++++++++++-------- .github/workflows/image-to-docker-hub.yml | 3 +- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.github/workflows/check-source-code.yml b/.github/workflows/check-source-code.yml index 94da87fc..1898f987 100644 --- a/.github/workflows/check-source-code.yml +++ b/.github/workflows/check-source-code.yml @@ -12,10 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository and submodules - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} + # Important for forked repositories + # This is dangerous without the "check-permissions" job + ref: ${{ github.event.pull_request.head.sha }} - id: prepare-env uses: ./.github/actions/prepare-local-env - name: Install dependencies @@ -28,10 +30,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository and submodules - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} + # Important for forked repositories + # This is dangerous without the "check-permissions" job + ref: ${{ github.event.pull_request.head.sha }} - uses: ./.github/actions/prepare-local-env - name: Lint source code run: npm run lint @@ -42,10 +46,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository and submodules - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} + # Important for forked repositories + # This is dangerous without the "check-permissions" job + ref: ${{ github.event.pull_request.head.sha }} - uses: ./.github/actions/prepare-local-env - name: Unit testing run: npm run test:unit @@ -56,10 +62,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository and submodules - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} + # Important for forked repositories + # This is dangerous without the "check-permissions" job + ref: ${{ github.event.pull_request.head.sha }} - uses: ./.github/actions/prepare-local-env - name: Build source code run: npm run build @@ -89,10 +97,12 @@ jobs: # options: --user 1001 # steps: # - name: Checkout repository and submodules - # uses: actions/checkout@v2 + # uses: actions/checkout@v4 # with: # submodules: recursive - # token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} + # # Important for forked repositories + # # This is dangerous without the "check-permissions" job + # ref: ${{ github.event.pull_request.head.sha }} # - uses: ./.github/actions/prepare-local-env # - name: Run Cypress e2e tests # uses: cypress-io/github-action@v6 @@ -122,10 +132,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository and submodules - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} + # Important for forked repositories + # This is dangerous without the "check-permissions" job + ref: ${{ github.event.pull_request.head.sha }} - id: docker-build uses: ./.github/actions/docker-build with: diff --git a/.github/workflows/image-to-docker-hub.yml b/.github/workflows/image-to-docker-hub.yml index b27e8c0f..aeb0ccfc 100644 --- a/.github/workflows/image-to-docker-hub.yml +++ b/.github/workflows/image-to-docker-hub.yml @@ -14,10 +14,9 @@ jobs: steps: - name: Checkout repository and submodules - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.REPOSITORIES_ACCESS_TOKEN }} - id: docker-build uses: ./.github/actions/docker-build