Skip to main content

Verify Selected Commits Are Signed API

Type: Rule
ID: github-api-signed-commits-list
Source: v2/rules/github/api/signed-commits-list.yaml
Rego Source: signed-commits-list.rego
Labels: GitHub, API

Verify selected commits are signed in the GitHub organization.

tip

Evidence IS NOT required for this rule.

Usage example

uses: github/api/signed-commits-list@v2
with:
commit_id_list:
- "11111115644ea629569e6a3c98c8375111111"
- "22222225644ea629569e6a3c98c8375222222"
access_token: '{{ .Args.Token }}'
owner: my_owner

Description

This rule ensures that the selected commits are signed in the GitHub organization. It performs the following steps:

  1. Checks the selected commits in the Selected GitHub repository.
  2. Verifies that the selected commits are signed. 2.1 Verifies that the selected commits are signed by the proper owner.

Evidence Requirements:

  • Evidence must be provided by the Scribe Platform's CLI tool through scanning GitHub repository resources.
  • Github API token must be provided to access the GitHub API.

Input Definitions

ParameterTypeRequiredDescription
commit_id_listarrayTrueList of commit IDs to verify if they are signed.
access_tokenstringTrueGitHub API access token.
ownerstringTrueGitHub repository owner.
repostringTrueGitHub repository name.