Skip to content

build(deps): Bump step-security/harden-runner from 2.12.2 to 2.13.0 #138

build(deps): Bump step-security/harden-runner from 2.12.2 to 2.13.0

build(deps): Bump step-security/harden-runner from 2.12.2 to 2.13.0 #138

Workflow file for this run

name: Release
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/release.yml
- ./scripts/release_notes
- .goreleaser.yml
push:
tags:
- "v*"
jobs:
test:
uses: Open-CMSIS-Pack/cpackget/.github/workflows/test.yml@main
goreleaser:
needs: test
permissions:
contents: write # for goreleaser/goreleaser-action to create a GitHub release
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Download test results
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: test-results-*
path: testreport/
- name: Zip test reports
run: |
zip -r testreport.zip testreport
- name: Attach test reports to release assets
if: startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: testreport.zip
tag: ${{ github.ref }}
overwrite: true
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: go.mod
check-latest: true
- name: Generate release notes
run: |
./scripts/release_notes > /tmp/RELEASE_NOTES
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
with:
version: latest
args: release ${{ github.event_name != 'push' && '--snapshot' || '' }} --clean --release-notes=/tmp/RELEASE_NOTES
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}