{"id":44988236,"url":"https://github.com/kosli-dev/templated-workflow","last_synced_at":"2026-02-18T20:28:22.513Z","repository":{"id":305648975,"uuid":"1023426009","full_name":"kosli-dev/templated-workflow","owner":"kosli-dev","description":"An opinionated Github Actions workflow using Kosli","archived":false,"fork":false,"pushed_at":"2025-08-19T14:03:15.000Z","size":653,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-19T15:34:03.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kosli-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-21T06:36:07.000Z","updated_at":"2025-08-19T14:03:18.000Z","dependencies_parsed_at":"2025-07-21T10:20:06.140Z","dependency_job_id":"8bde854d-cfc5-4949-a3b2-90e385b24105","html_url":"https://github.com/kosli-dev/templated-workflow","commit_stats":null,"previous_names":["kosli-dev/templated-workflow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kosli-dev/templated-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosli-dev%2Ftemplated-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosli-dev%2Ftemplated-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosli-dev%2Ftemplated-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosli-dev%2Ftemplated-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kosli-dev","download_url":"https://codeload.github.com/kosli-dev/templated-workflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosli-dev%2Ftemplated-workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29594256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T18:54:29.675Z","status":"ssl_error","status_checked_at":"2026-02-18T18:50:50.517Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-18T20:28:21.741Z","updated_at":"2026-02-18T20:28:22.490Z","avatar_url":"https://github.com/kosli-dev.png","language":"TypeScript","readme":"# Templated Workflow with Kosli Integration\n\nAn opinionated, reusable GitHub Actions workflow that provides automated CI/CD with compliance tracking using Kosli. This workflow handles Docker image building, security scanning, linting, and artifact attestation out of the box.\n\n## Custom Actions\n\nThis repository includes two custom GitHub Actions for Kosli integration:\n\n- [Begin Trail Action](./begin-trail-action/README.md): Starts a Kosli trail for your workflow.\n- [Check Template Complete Action](./template-complete-action/README.md): Checks if all required attestations in a Kosli trail are complete.\n\nSee each action's README for usage and details.\n\n## Features\n\n- 🐳 **Docker Image Building**: Automatically builds and pushes container images to GitHub Container Registry\n- 🔍 **Security Scanning**: Trivy vulnerability scanning with configurable severity levels\n- ✅ **Code Linting**: Super Linter integration for code quality checks\n- 📋 **SBOM Generation**: Software Bill of Materials generation and attestation\n- 🔒 **Kosli Integration**: Complete artifact tracking and compliance attestation\n- 🏷️ **Smart Tagging**: Uses 8-character Git SHA for consistent image tagging\n\n## Prerequisites\n\nBefore using this workflow, ensure your repository has:\n\n1. **Kosli API Key**: Set `KOSLI_API_KEY` as a repository secret\n2. **Docker Support**: A `Dockerfile` in your repository root (or specify custom path)\n3. **GitHub Packages**: Enable GitHub Container Registry for your repository\n\n## Quick Start\n\n### 1. Add the Workflow to Your Repository\n\nCreate `.github/workflows/main.yaml` in your repository:\n\n```yaml\nname: CI/CD Pipeline\n\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  ci-cd:\n    uses: kosli-dev/templated-workflow/.github/workflows/dev-workflow.yaml@main\n    secrets: inherit # Important, otherwise it will not work.\n    with:\n      dockerfile-path: 'Dockerfile'  # Optional: defaults to 'Dockerfile'\n```\n\n### 2. Configure Repository Secrets\n\nAdd the following secret to your repository settings:\n\n- `KOSLI_API_KEY`: Your Kosli API token for artifact attestation\n\n### 3. Repository Permissions\n\nEnsure your repository has these permissions enabled:\n\n- **Actions**: Read and write\n- **Packages**: Write (for GitHub Container Registry)\n- **Contents**: Read\n\n## Configuration\n\n### Environment Variables\n\nThe workflow automatically sets up these environment variables:\n\n- `KOSLI_ORG`: Set to `kosli-public`\n- `KOSLI_FLOW`: Uses your repository name\n- `KOSLI_TRAIL`: Uses the full Git SHA\n- `IMAGE`: Follows pattern `{owner}/{repo-name}`\n\n## Workflow Jobs\n\n### 1. Setup\n\n- Initializes Kosli flow and trail\n- Generates 8-character SHA for tagging\n- Uploads repository code as artifact\n\n### 2. Linting\n\n- Runs Super Linter on your codebase\n- Non-blocking (errors don't fail the build)\n- Supports multiple languages and formats\n\n### 3. Docker Image\n\n- Builds Docker image with latest and SHA tags\n- Pushes to GitHub Container Registry (`ghcr.io`)\n- Attests the container artifact with Kosli\n- Generates and attests SBOM\n\n### 4. Security Scan\n\n- Runs Trivy vulnerability scanner\n- Scans for CRITICAL and HIGH severity vulnerabilities\n- Focuses on OS and library vulnerabilities\n- Ignores unfixed vulnerabilities\n\n## Image Tagging Strategy\n\nImages are tagged with:\n\n- `latest`: Always points to the most recent build\n- `{8-char-sha}`: Specific commit identifier (e.g., `a1b2c3d4`)\n\nExample: `ghcr.io/myorg/myrepo:a1b2c3d4`\n\n\n## Customization Examples\n\n### Custom Dockerfile Location\n\n```yaml\njobs:\n  ci-cd:\n    uses: kosli-dev/templated-workflow/.github/workflows/dev-workflow.yaml@main\n    secrets: inherit\n    with:\n      dockerfile-path: 'docker/prod.Dockerfile'\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosli-dev%2Ftemplated-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosli-dev%2Ftemplated-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosli-dev%2Ftemplated-workflow/lists"}