Skip to content

Fix Analyze Local Requires Internet (#37) #15

Fix Analyze Local Requires Internet (#37)

Fix Analyze Local Requires Internet (#37) #15

Workflow file for this run

name: goreleaser
on:
push:
# run only against tags
tags:
- "v0.[0-9]+.[0-9]+"
- "v1.[0-9]+.[0-9]+"
env:
GO_VERSION: 1.22
GO_RELEASER_VERSION: v1.25.1
permissions: {}
jobs:
goreleaser:
runs-on: ubuntu-latest
environment: homebrew-tap
permissions:
contents: write
packages: write
id-token: write
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0
- uses: actions/create-github-app-token@7bfa3a4717ef143a604ee0a99d859b8886a96d00 # v1.9.3
id: homebrew-tapper-bot-token
with:
app-id: ${{ vars.HOMEBREW_TAPPER_BOT_APP_ID }}
private-key: ${{ secrets.HOMEBREW_TAPPER_BOT_PRIVATE_KEY }}
repositories: homebrew-tap
- name: Login to GitHub Container Registry to allow cosign signature push
run: echo "$DOCKER_PASSWORD" | docker login ghcr.io --username "$DOCKER_USERNAME" --password-stdin
env:
DOCKER_USERNAME: ${{ github.actor }}
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5
with:
distribution: goreleaser
version: ${{ env.GO_RELEASER_VERSION }} # Not pinnable by hash, nor does it verify its signature
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ steps.homebrew-tapper-bot-token.outputs.token }}