I have downloaded commitsar executable on my custom action runner (running Ubuntu) and using it as below
steps:
- name: Checkout
uses: actions/checkout@v2 # I have tried actions/checkout@v1 too
- name: Validate Commits
run: commitsar -v
Problem
commitsar fails on a shallow clone
runner@runner-deployment-nzvgd-6kpsc:/runner/_work/.github/.github$ git log
commit 048c926b55b5386bdc0cb4d0f0919a993afc46b3 (grafted, HEAD)
Author: Vikas Kumar <vikas@reachvikas.com>
Date: Fri Sep 17 01:24:33 2021 +1000
docs: updated README
Fixed the repository name in README
runner@runner-deployment-nzvgd-6kpsc:/runner/_work/.github/.github$
runner@runner-deployment-nzvgd-6kpsc:/runner/_work/.github/.github$ git branch -a
* (HEAD detached at 048c926)
runner@runner-deployment-nzvgd-6kpsc:/runner/_work/.github/.github$
runner@runner-deployment-nzvgd-6kpsc:/runner/_work/.github/.github$ commitsar -v
2021/09/16 15:56:51 config file not found, using defaults
• Starting pipeline: commit-pipeline
• Starting analysis of commits on branch HEAD
• All pipelines complete
• [commit-pipeline] reference not found
Some errors were found
runner@runner-deployment-nzvgd-6kpsc:/runner/_work/.github/.github$
Environmentent
I have downloaded
commitsar
executable on my custom action runner (running Ubuntu) and using it as belowProblem
commitsar
fails on a shallow cloneWorkaround
or