chore(deps): update astral-sh/setup-uv action to v7.1.5 #632
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 | |
| - name: Run tests | |
| run: | | |
| go test -v ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Lint markdown | |
| uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v21.0.0 | |
| with: | |
| config: .markdownlint.yaml | |
| - name: Get actionlint release | |
| id: get-actionlint-release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| eval "$(gh api \ | |
| /repos/rhysd/actionlint/releases/latest \ | |
| --jq '.assets[] | | |
| select (.name | endswith("_linux_amd64.tar.gz")) | | |
| "node_id=\(.node_id | @sh); browser_download_url=\(.browser_download_url | @sh)"')" | |
| echo "node_id=${node_id}" | tee -a "${GITHUB_OUTPUT}" | |
| echo "browser_download_url=${browser_download_url}" | tee -a "${GITHUB_OUTPUT}" | |
| mkdir -p ~/.local/bin | |
| echo "${HOME}/.local/bin" | tee -a "${GITHUB_PATH}" | |
| - name: Cache actionlint | |
| id: cache-actionlint | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.local/bin/actionlint | |
| key: actionlint-${{ steps.get-actionlint-release.outputs.node_id }} | |
| - name: Download actionlint | |
| id: get_actionlint | |
| if: steps.cache-actionlint.outputs.cache-hit != 'true' | |
| env: | |
| RELEASE: ${{ steps.get-actionlint-release.outputs.browser_download_url }} | |
| run: | | |
| curl -sSL "${RELEASE}" \ | |
| | tar -C ~/.local/bin/ -xzf - actionlint | |
| chmod +x ~/.local/bin/actionlint | |
| - name: Check workflow files | |
| run: actionlint -color | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5 | |
| - name: Run zizmor | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: uvx zizmor --format sarif . > results.sarif | |
| - name: Upload SARIF file | |
| uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7 | |
| with: | |
| sarif_file: results.sarif | |
| category: zizmor |