Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Add multi-repo attestation workflow and supporting scripts #20

Add multi-repo attestation workflow and supporting scripts

Add multi-repo attestation workflow and supporting scripts #20

# This is a basic workflow to help you get started with Actions
name: Template Complete 1
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env: # Set the secret as an input
APP_NAME: ${{ github.event.repository.name }}
BUILD_NUMBER: ${{ github.run_number }}
GIT_REPO: ${{ github.repository }}
GIT_REPO_URL: ${{ github.event.repository.clone_url }}
GIT_BRANCH: ${{ github.ref_name }}
GIT_COMMIT: ${{ github.sha }}
BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
COMMIT_URL: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_KEY }} # Set the Kosli API token as a secret in your repository
KOSLI_ORG: sofusalbertsen
KOSLI_FLOW: template-complete
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: setup-kosli-cli
uses: kosli-dev/setup-cli-action@v2
- name: Update Flow
run: kosli create flow ${{env.KOSLI_FLOW}} --description "Flow to check the template complete approach" --template-file=${{env.KOSLI_FLOW}}/kosli-config/flow.yaml
# Runs a single command using the runners shell
- name: run the scenario up
run: bash ${{env.KOSLI_FLOW}}/1.sh
- name: check-template-complete
run: bash ${{env.KOSLI_FLOW}}/check-template-complete.sh data.json MISSING