build(deps): bump tailscale.com from 1.82.5 to 1.88.4 #379
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: build for test | |
| env: | |
| # Common versions | |
| GO_VERSION: '1.24' | |
| TZ: Asia/Shanghai | |
| permissions: write-all | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - '.github/**' | |
| pull_request: | |
| branches: | |
| - "*" | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - '.github/**' | |
| # paths-ignore: | |
| # - 'docs/**' | |
| # - '*.md' | |
| # - '*.yml' | |
| jobs: | |
| build: | |
| name: "build" | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| check-latest: true | |
| - name: install gox | |
| run: | | |
| echo "install gox" | |
| go install github.com/mitchellh/gox@latest | |
| - name: install task | |
| run: | | |
| echo "install task" | |
| go install github.com/go-task/task/v3/cmd/task@latest | |
| - name: install upx | |
| run: | | |
| echo "install upx" | |
| sudo apt-get update -qq | |
| sudo apt-get install -y upx | |
| - name: build qcadmin | |
| run: | | |
| task linux | |
| - name: test qcadmin | |
| run: | | |
| sudo ./_output/qcadmin_linux_amd64 version | |
| sudo ./_output/qcadmin_linux_amd64 init --domain github.local --debug | |
| - name: test qcadmin | |
| run: | | |
| task docker-build | |
| - name: Run Trivy vulnerability scanner | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| image-ref: ttl.sh/easysoft/qcadmin | |
| format: 'sarif' | |
| ignore-unfixed: true | |
| severity: 'CRITICAL,HIGH,MEDIUM' | |
| output: 'trivy-results.sarif' | |
| - name: Upload Trivy scan results to GitHub Security tab | |
| uses: github/codeql-action/upload-sarif@v3 | |
| if: always() | |
| with: | |
| sarif_file: 'trivy-results.sarif' | |
| build-snapshot: | |
| name: "build-snapshot" | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| check-latest: true | |
| - name: install gox | |
| run: | | |
| echo "install gox" | |
| go install github.com/mitchellh/gox@latest | |
| - name: install task | |
| run: | | |
| echo "install task" | |
| go install github.com/go-task/task/v3/cmd/task@latest | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: v2.8.2 #latest | |
| install-only: true | |
| - name: build qcadmin | |
| run: | | |
| task snapshot |