Skip to content

SignPath/github-actions-demo

Repository files navigation

Using SignPath with GitHub Actions or Azure DevOps

This project demonstrates signing artifacts using SignPath from GitHub Actions workflows or Azure DevOps pipelines.

GitHub

Signing is invoked in the sign step of .github/workflows/build-and-sign.yml.

See the documentation for a full documentation of the integration.

Azure DevOps

Signing is invoked in the Sign step of azure-pipelines.yml.

See the documentation for a full documentation of the integration.

Policy demonstrations

This project demonstrates the following attempts to violate SignPath policies and how they are averted on the control plane:

Configuration

To use this demo with your own SignPath subscription, you need to get access to SignPath's GitHub Actions preview. Please contact support@signpath.io.

  • Fork this repository
    • Uncheck Copy the main branch only
  • In your SignPath organization, create a project with
    • Slug: Demo_Application
    • Repository URLs: Your forked GitHub repository, e.g. https://github.com/my/github-actions-demo
    • Trusted Build Systems: Link GitHub.com or AzureDevOps.com respectively
    • Add the following artifact configuration as default: .signpath/artifact-configurations/default.xml
    • Add a test-signing signing policy
    • Add a release-signing signing policy with origin verification enabled and restricted to main and release/* branches

GitHub configuration

  • Create an API token in SignPath and add it as a GitHub Actions secret SIGNPATH_API_TOKEN (make sure the user is a submitter in your signing policies)
  • Add your SignPath Organization ID as a GitHub Actions variable SIGNPATH_ORGANIZATION_ID (click your organization's name at the upper right corner)
  • Enable Actions for your GitHub repository

Azure DevOps configuration

  • Install the extension and add a service connection to your project

About

Demo Project for showcasing SignPath's Github Actions integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •