From f4016ced6d0c6a22972f33fd29f77fbdded38f23 Mon Sep 17 00:00:00 2001 From: max furman Date: Wed, 1 Oct 2025 21:21:33 -0700 Subject: [PATCH] Don't fail if chmod step fails --- .github/workflows/codeql-analysis.yml | 4 +++- .github/workflows/goTest.yml | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 33f2ae0..7165899 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -45,6 +45,7 @@ jobs: ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} - name: Setup Go + id: setup-go uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 'stable' @@ -52,10 +53,11 @@ jobs: cache: true - name: chmod cache dir + if: steps.setup-go.outputs.cache-hit == 'true' run: | chmod -R 0755 \ ~/.cache/go-build \ - ~/go/pkg/mod + ~/go/pkg/mod || true - name: Action Cache uses: actions/cache@v4 diff --git a/.github/workflows/goTest.yml b/.github/workflows/goTest.yml index ebfc1db..05ec89d 100644 --- a/.github/workflows/goTest.yml +++ b/.github/workflows/goTest.yml @@ -88,7 +88,8 @@ jobs: git config --global url.https://${{ secrets.PAT }}@github.com/.insteadOf git+ssh://git@github.com git config --global url.git@github.com:.insteadOf https://github.com/ - - name: Install Go + name: Setup Go + id: setup-go uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: ${{ matrix.go }} @@ -96,10 +97,11 @@ jobs: cache: true - name: chmod cache dir + if: steps.setup-go.outputs.cache-hit == 'true' run: | chmod -R 0755 \ ~/.cache/go-build \ - ~/go/pkg/mod + ~/go/pkg/mod || true - name: Action Cache uses: actions/cache@v4