Skip to content
Policy enforcement for your pipelines.
Go Dockerfile Makefile Shell
Branch: master
Clone or download
bradbeam chore: Replace autonomy with talos-systems
Fixes up import paths to use updated org name

Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
Latest commit 0076446 Aug 17, 2019

README.md

Conform

Policy enforcement for your pipelines.

Conventional Commits GoDoc Travis Codecov Go Report Card Release GitHub (pre-)release


Conform is a tool for enforcing policies on your build pipelines.

Some of the policies included are:

  • Commits: Enforce commit policies including:
    • Commit message header length
    • Developer Certificate of Origin
    • GPG signature
    • Conventional Commits
    • Imperative mood
    • Maximum of one commit ahead of master
    • Require a commit body
  • License Headers: Enforce license headers on source code files.

Getting Started

Create a file named .conform.yaml with the following contents:

policies:
  - type: commit
    spec:
      headerLength: 89
      dco: true
      gpg: false
      imperative: true
      maximumOfOneCommit: true
      requireCommitBody: true
      conventional:
        types:
          - "type"
        scopes:
          - "scope"
  - type: license
    spec:
      skipPaths:
      - .git/
      - .build*/
      includeSuffixes:
      - .ext
      excludeSuffixes:
      - .exclude-ext-prefix.ext
      header: |
        This is the contents of a license header.

In the same directory, run:

$ conform enforce
POLICY         CHECK                      STATUS        MESSAGE
commit         Header Length              PASS          <none>
commit         DCO                        PASS          <none>
commit         Imperative Mood            PASS          <none>
commit         Conventional Commit        PASS          <none>
commit         Number of Commits          PASS          <none>
commit         Commit Body                PASS          <none>
license        File Header                PASS          <none>

License

license

You can’t perform that action at this time.