chore: Update module golang.org/x/net to v0.51.0 [SECURITY] #1568
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Push/PR | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: none | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6 | |
| with: | |
| go-version-file: go.mod | |
| - run: | | |
| make build | |
| test: | |
| name: Test | |
| strategy: | |
| matrix: | |
| platform: [ ubuntu-latest, ubuntu-24.04-arm ] | |
| fail-fast: false | |
| runs-on: ${{ matrix.platform }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - run: | | |
| make test | |
| test-integration: | |
| name: Integration tests | |
| strategy: | |
| matrix: | |
| platform: [ ubuntu-latest, ubuntu-24.04-arm ] | |
| fail-fast: false | |
| runs-on: ${{ matrix.platform }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - run: | | |
| make test-integration | |
| build-container: | |
| name: Build container image | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4 | |
| - name: Build contianer | |
| uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7 | |
| with: | |
| push: false | |
| tags: ci.local/crocochrome:${{ github.sha }} | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| golangci: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Sanity check .dockerignore | |
| run: |- | |
| if [[ -e ".dockerignore" ]]; then | |
| cat <<EOF | |
| .dockerignore will prevent files tracked by git from being copied into the container, which in turn will | |
| cause Go to see the build tree as "dirty", and self-report the version as dirty too. This will cause | |
| problems with the deployment process. | |
| Please remove .dockerignore. | |
| If you _really_ need .dockerignore, make sure .gitignore is a superset of .dockerignore, and change this | |
| step to test for that. | |
| EOF | |
| exit 1 | |
| fi | |
| - id: lint | |
| run: |- | |
| # Force the makefile to use the docker container to run the linter. | |
| # This ensures the environment where the linter is running is sane | |
| # (go toolchain version matches the one used to build the linter). | |
| make CI=false LOCAL=false S= lint |