Forgejo action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information and proper header.
ci
Find a file
Vitaliy Potyarkin a1551e3709
All checks were successful
/ OCI image (pull_request) Successful in 1m30s
/ OCI image (push) Successful in 2m2s
[#14] Build Docker image for commit checker
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2025-03-25 17:18:08 +03:00
.forgejo/workflows [#14] Build Docker image for commit checker 2025-03-25 17:18:08 +03:00
action.yaml Initial commit 2023-06-30 18:54:50 +03:00
Dockerfile [#14] Build Docker image for commit checker 2025-03-25 17:18:08 +03:00
go.mod [#2] Write tests for the regex 2024-01-25 19:17:12 +03:00
go.sum Initial commit 2023-06-30 18:54:50 +03:00
LICENSE [#11] Add Apache License 2024-11-08 11:45:04 +03:00
main.go [#14] Read action arguments from environment when not in GHA 2025-03-25 16:04:28 +03:00
main_test.go [#2] Write tests for the regex 2024-01-25 19:17:12 +03:00
Makefile [#14] Build Docker image for commit checker 2025-03-25 17:18:08 +03:00
README.md [#11] Add Apache License 2024-11-08 11:45:04 +03:00

dco-go

A Forgejo action that verifies commits in pull-request all include Developer Certificate of Origin (DCO) information and proper header.

Usage

Add .forgejo/workflows/dco.yml with the following

on: [pull_request]

jobs:
  dco:
    name: DCO
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Setup Go
        uses: actions/setup-go@v3
        with:
          go-version: '1.20'

      - name: Run commit format checker
        uses: https://git.frostfs.info/TrueCloudLab/dco-go@v1
        with:
          from: 406c2324

Action checks through whole repository history. Specify last commit to check bound with from parameter.

Copyright 2023-2024 FrostFS contributors

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.