From b1df3846b9f6b51b50dd391c814b61939252e669 Mon Sep 17 00:00:00 2001 From: trajan0x <83933037+trajan0x@users.noreply.github.com> Date: Sun, 24 Mar 2024 16:44:49 +0100 Subject: [PATCH] fix go workflow (#2358) Co-authored-by: Trajan0x --- .github/workflows/go.yml | 4 ++-- .github/workflows/goreleaser-actions.yml | 2 +- .github/workflows/scan.yml | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 03a7b5b0e7..a32e9927da 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -49,7 +49,7 @@ jobs: - uses: docker://ghcr.io/synapsecns/sanguine/git-changes-action:latest id: filter_go with: - github_token: ${{ secrets.WORKFLOW_PAT }} + github_token: ${{ secrets.WORKFLOW_PAT || secrets.GITHUB_TOKEN }} timeout: '10m' - name: Check For Solidity Changes @@ -349,7 +349,7 @@ jobs: args: --timeout=60m env: # GitHub token for annotations (optional) - GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT }} + GITHUB_TOKEN: ${{ secrets.WORKFLOW_PAT || secrets.GITHUB_TOKEN }} GOMEMLIMIT: 6GiB GOGC: -1 diff --git a/.github/workflows/goreleaser-actions.yml b/.github/workflows/goreleaser-actions.yml index e248f41555..e5c1b0df71 100644 --- a/.github/workflows/goreleaser-actions.yml +++ b/.github/workflows/goreleaser-actions.yml @@ -100,7 +100,7 @@ jobs: - uses: docker://ghcr.io/synapsecns/sanguine/git-changes-action:latest id: filter_go with: - github_token: ${{ secrets.WORKFLOW_PAT }} + github_token: ${{ secrets.WORKFLOW_PAT || secrets.GITHUB_TOKEN }} - id: length run: | diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index 30e89afdba..fccfac5350 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -12,7 +12,8 @@ jobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest -# these are pretty disruptive + if: github.repository_owner == 'synapsecns' + # these are pretty disruptive # permissions: # contents: write # pull-requests: write