From 297aab56a017ad74946399fd9261603c1a656ed2 Mon Sep 17 00:00:00 2001 From: Antonis Stamatiou Date: Wed, 20 Nov 2024 13:22:23 +0200 Subject: [PATCH] fix: Fix publish permissions for retries (#29342) --- .github/workflows/server-ci-template.yml | 7 ++++--- .github/workflows/server-test-template.yml | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/server-ci-template.yml b/.github/workflows/server-ci-template.yml index a21db74950..7a8b732b2f 100644 --- a/.github/workflows/server-ci-template.yml +++ b/.github/workflows/server-ci-template.yml @@ -263,36 +263,37 @@ jobs: name: Postgres with binary parameters needs: check-mattermost-vet uses: ./.github/workflows/server-test-template.yml + secrets: inherit with: name: Postgres with binary parameters datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10&binary_parameters=yes drivername: postgres logsartifact: postgres-binary-server-test-logs - secrets: inherit test-postgres-normal: name: Postgres needs: check-mattermost-vet uses: ./.github/workflows/server-test-template.yml + secrets: inherit with: name: Postgres datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10 drivername: postgres logsartifact: postgres-server-test-logs - secrets: inherit test-mysql: name: MySQL needs: check-mattermost-vet uses: ./.github/workflows/server-test-template.yml + secrets: inherit with: name: MySQL datasource: mmuser:mostest@tcp(mysql:3306)/mattermost_test?charset=utf8mb4&multiStatements=true&maxAllowedPacket=4194304 drivername: mysql logsartifact: mysql-server-test-logs - secrets: inherit test-mmctl: name: Run mmctl tests needs: check-mattermost-vet uses: ./.github/workflows/mmctl-test-template.yml + secrets: inherit with: name: mmctl datasource: postgres://mmuser:mostest@postgres:5432/mattermost_test?sslmode=disable&connect_timeout=10 diff --git a/.github/workflows/server-test-template.yml b/.github/workflows/server-test-template.yml index 16d32f987e..76ccdcc858 100644 --- a/.github/workflows/server-test-template.yml +++ b/.github/workflows/server-test-template.yml @@ -19,6 +19,9 @@ jobs: test: name: ${{ inputs.name }} runs-on: ubuntu-22.04 + permissions: + pull-requests: write + checks: write env: COMPOSE_PROJECT_NAME: ghactions steps: