diff options
author | silverwind <me@silverwind.io> | 2023-06-09 09:33:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 09:33:48 +0200 |
commit | 3c6aa8d3e19e2e558336e89aebc17d8adcf06350 (patch) | |
tree | 6690fbf12f43dd15147135a9cb67bd41870aa43c /.github/workflows/pull-db-tests.yml | |
parent | 6d063a81f075d83fe41991b91fd175b100fdc0d5 (diff) | |
download | gitea-3c6aa8d3e19e2e558336e89aebc17d8adcf06350.tar.gz gitea-3c6aa8d3e19e2e558336e89aebc17d8adcf06350.zip |
Fix setup-go actions (#25167)
The `setup-go` actions did not all have `check-latest` which means they
use some cached version of go that currently still resolves to go1.20.4,
as seen in a number of recent runs that currently fail at govulncheck
because of it:
````
Run actions/setup-go@v4
Setup go version spec >=1.20
Attempting to resolve the latest version from the manifest...
matching >=1.20...
Resolved as '1.20.4'
````
Add the
[check-latest](https://github.com/actions/setup-go#check-latest-version)
option which should guarantee that this cache is skipped.
Diffstat (limited to '.github/workflows/pull-db-tests.yml')
-rw-r--r-- | .github/workflows/pull-db-tests.yml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml index cf08da1512..9d0c890064 100644 --- a/.github/workflows/pull-db-tests.yml +++ b/.github/workflows/pull-db-tests.yml @@ -41,7 +41,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 pgsql ldap minio" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -65,7 +66,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - run: make deps-backend - run: make backend env: @@ -123,7 +125,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -172,7 +175,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql elasticsearch smtpimap" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -203,7 +207,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mysql8" | sudo tee -a /etc/hosts' - run: make deps-backend @@ -233,7 +238,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: ">=1.20.0" + go-version: ">=1.20" + check-latest: true - name: Add hosts to /etc/hosts run: '[ -e "/.dockerenv" ] || [ -e "/run/.containerenv" ] || echo "127.0.0.1 mssql" | sudo tee -a /etc/hosts' - run: make deps-backend |