mirror of
https://github.com/edera-dev/sprout.git
synced 2026-02-04 18:30:17 +00:00
Bumps the actions-updates group with 1 update: [step-security/harden-runner](https://github.com/step-security/harden-runner).
Updates `step-security/harden-runner` from 2.14.0 to 2.14.1
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](20cf305ff2...e3f713f2d8)
---
updated-dependencies:
- dependency-name: step-security/harden-runner
dependency-version: 2.14.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: actions-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
name: release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release-tag:
|
|
description: 'Release Tag'
|
|
required: true
|
|
type: string
|
|
|
|
permissions:
|
|
contents: read # Needed to checkout the repository.
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.event.inputs.release-tag }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
release:
|
|
name: release
|
|
permissions:
|
|
contents: write # Needed to upload release assets.
|
|
id-token: write # Needed for attestation.
|
|
attestations: write # Needed for attestations.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: harden runner
|
|
uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: 'install rust toolchain'
|
|
run: |
|
|
cargo version
|
|
|
|
- name: 'assemble release artifacts'
|
|
run: ./hack/assemble.sh
|
|
|
|
- name: 'attest release artifacts'
|
|
uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0
|
|
with:
|
|
subject-path: target/assemble/*
|
|
|
|
- name: 'generate cultivator token'
|
|
uses: actions/create-github-app-token@bf559f85448f9380bcfa2899dbdc01eb5b37be3a # v3.0.0-beta.2
|
|
id: generate-token
|
|
with:
|
|
app-id: "${{ secrets.EDERA_CULTIVATION_APP_ID }}"
|
|
private-key: "${{ secrets.EDERA_CULTIVATION_APP_PRIVATE_KEY }}"
|
|
if: ${{ github.event.inputs.release-tag != '' }}
|
|
|
|
- name: 'upload release artifacts'
|
|
run: ./hack/ci/upload-release-assets.sh
|
|
env:
|
|
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
|
|
RELEASE_TAG: "${{ github.event.inputs.release-tag }}"
|
|
if: ${{ github.event.inputs.release-tag != '' }}
|
|
|
|
- name: 'mark release as published'
|
|
run: gh release edit "${RELEASE_TAG}" --draft=false --verify-tag
|
|
env:
|
|
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
|
|
RELEASE_TAG: "${{ github.event.inputs.release-tag }}"
|
|
if: ${{ github.event.inputs.release-tag != '' }}
|