Skip to content

feat(workflows): Reusable workflow to attest GitHub Releases #33

feat(workflows): Reusable workflow to attest GitHub Releases

feat(workflows): Reusable workflow to attest GitHub Releases #33

Workflow file for this run

name: Release
on:
pull_request:
permissions:
contents: read
jobs:
# This reusable workflow inspects if the given workflow_name exists on Chainloop. If the Workflow does not exist
# it will create one with an empty contract ready for operators to be filled. Otherwise, if found, it will just
# be ignored and the process will continue. For this to work it's using a pre-created API Token
testing-echo:
name: Echo
runs-on: ubuntu-latest
outputs:
additional_materials: ${{ steps.Echo.outputs.additional_materials }}
steps:
- name: Echo
run: |
echo "Hello, World!"
echo "additional_materials="ghcr.io/chainloop-dev/chainloop/control-plane:v0.88.0,ghcr.io/chainloop-dev/chainloop/artifact-cas:v0.88.0"" >> $GITHUB_OUTPUT
github_release:
name: GitHub Release
uses: ./.github/workflows/chainloop_github_release.yml
needs: testing-echo
with:
project: "chainloop"
workflow_name: "javi-github-release"
additional_materials: ${{ needs.testing-echo.outputs.additional_materials }}
secrets:
api_token: ${{ secrets.CHAINLOOP_API_TOKEN }}