Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ updates:
open-pull-requests-limit: 10
cooldown:
default-days: 7
semver-major-days: 14
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
type: boolean
default: true

permissions:
contents: read

concurrency:
group: release-${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.sha }}
cancel-in-progress: false
Expand Down Expand Up @@ -146,6 +149,8 @@ jobs:
timeout-minutes: 30
permissions:
contents: write
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -211,6 +216,27 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

- name: Collect attestation subjects
id: attestation_subjects
shell: bash
run: |
set -euo pipefail
mapfile -t subjects < <(find dist -maxdepth 1 -type f | sort)
if ((${#subjects[@]} == 0)); then
echo "::error::No release artifacts found to attest."
exit 1
fi
{
echo "subjects<<EOF"
printf '%s\n' "${subjects[@]}"
echo "EOF"
} >> "$GITHUB_OUTPUT"

- name: Generate artifact attestation
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4
with:
subject-path: ${{ steps.attestation_subjects.outputs.subjects }}

skill-publish:
needs: [prepare, release]
if: >-
Expand Down
Loading