Bumps the actions group with 1 update: [anchore/sbom-action](https://github.com/anchore/sbom-action). Updates `anchore/sbom-action` from 0.24.0 to 0.24.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/anchore/sbom-action/releases">anchore/sbom-action's releases</a>.</em></p> <blockquote> <h2>v0.24.2</h2> <h3>Added Features</h3> <ul> <li>bump eslint from 10.8.1 to 10.9.0 [<a href="https://redirect.github.com/anchore/sbom-action/pull/724">#724</a> <a href="https://github.com/dependabot"><code>@dependabot</code></a>]</li> </ul> <h3>Additional Changes</h3> <ul> <li>add makefile target to bump syft [<a href="https://redirect.github.com/anchore/sbom-action/pull/620">#620</a> <a href="https://github.com/willmurphyscode"><code>@willmurphyscode</code></a>]</li> <li>update zizmor workflow triggers [<a href="https://redirect.github.com/anchore/sbom-action/pull/624">#624</a> <a href="https://github.com/wagoodman"><code>@wagoodman</code></a>]</li> <li>require zizmor security events [<a href="https://redirect.github.com/anchore/sbom-action/pull/621">#621</a> <a href="https://github.com/wagoodman"><code>@wagoodman</code></a>]</li> </ul> <p><strong><a href="https://github.com/anchore/sbom-action/compare/v0.24.0...v0.24.2">(Full Changelog)</a></strong></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="3ad7283483"><code>3ad7283</code></a> ops: update write permissions for release (<a href="https://redirect.github.com/anchore/sbom-action/issues/723">#723</a>)</li> <li><a href="31f5287d0c"><code>31f5287</code></a> chore(deps-dev): bump eslint from 10.8.1 to 10.9.0 (<a href="https://redirect.github.com/anchore/sbom-action/issues/724">#724</a>)</li> <li><a href="aa80c8c5bd"><code>aa80c8c</code></a> chore(deps): update Syft to latest release (<a href="https://redirect.github.com/anchore/sbom-action/issues/722">#722</a>)</li> <li><a href="74b54e97f6"><code>74b54e9</code></a> chore(deps): bump lodash from 4.17.23 to 4.18.1 (<a href="https://redirect.github.com/anchore/sbom-action/issues/623">#623</a>)</li> <li><a href="6b92ff5b2c"><code>6b92ff5</code></a> chore(deps-dev): bump tsx from 4.23.11 to 4.23.12 (<a href="https://redirect.github.com/anchore/sbom-action/issues/721">#721</a>)</li> <li><a href="4f8983b931"><code>4f8983b</code></a> chore(deps-dev): bump typescript-eslint from 8.65.0 to 8.67.0 (<a href="https://redirect.github.com/anchore/sbom-action/issues/719">#719</a>)</li> <li><a href="10f27f499c"><code>10f27f4</code></a> chore(deps-dev): bump eslint from 10.5.0 to 10.8.1 (<a href="https://redirect.github.com/anchore/sbom-action/issues/720">#720</a>)</li> <li><a href="249403a067"><code>249403a</code></a> chore(deps-dev): bump <code>@types/node</code> from 26.1.0 to 26.2.0 (<a href="https://redirect.github.com/anchore/sbom-action/issues/718">#718</a>)</li> <li><a href="cbf8daab5e"><code>cbf8daa</code></a> chore(deps): bump anchore/workflows/.github/workflows/check-gate.yaml (<a href="https://redirect.github.com/anchore/sbom-action/issues/693">#693</a>)</li> <li><a href="6afc793958"><code>6afc793</code></a> fix: pin syft install.sh to the release tag being installed (<a href="https://redirect.github.com/anchore/sbom-action/issues/716">#716</a>)</li> <li>Additional commits viewable in <a href="https://github.com/anchore/sbom-action/compare/v0.24.0...v0.24.2">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
86 lines
2.5 KiB
YAML
86 lines
2.5 KiB
YAML
name: Release
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
id-token: write # needed for signing
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
|
|
with:
|
|
go-version: 'stable'
|
|
cache: true
|
|
|
|
- name: Install cosign
|
|
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
|
|
|
|
- name: Install Syft
|
|
uses: anchore/sbom-action/download-syft@v0.24.2
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94
|
|
with:
|
|
distribution: goreleaser
|
|
version: v2.12.0
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ko-push:
|
|
name: Build and Push Image with ko
|
|
runs-on: ubuntu-latest
|
|
needs: goreleaser
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
|
|
with:
|
|
go-version: 'stable'
|
|
cache: true
|
|
|
|
- name: Set up ko
|
|
uses: ko-build/setup-ko@v0.10
|
|
|
|
- name: Log in to Container Registry
|
|
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Get build timestamp and version
|
|
id: build-info
|
|
run: |
|
|
echo "timestamp=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_OUTPUT
|
|
# Extract version from tag and strip 'v' prefix (e.g., refs/tags/v1.2.3 -> 1.2.3)
|
|
VERSION="${GITHUB_REF#refs/tags/}"
|
|
VERSION="${VERSION#v}"
|
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and push with ko
|
|
env:
|
|
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
|
|
VERSION: ${{ steps.build-info.outputs.version }}
|
|
GIT_COMMIT: ${{ github.sha }}
|
|
BUILD_TIME: ${{ steps.build-info.outputs.timestamp }}
|
|
run: |
|
|
# Build and push multi-platform image with version tag and latest
|
|
ko build ./cmd/registry \
|
|
--bare \
|
|
--platform=linux/amd64,linux/arm64 \
|
|
--tags=${{ steps.build-info.outputs.version }},latest
|