diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index e14e713a8d2..8d25d8a08b6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -129,18 +129,15 @@ jobs: # Only check commits on pull requests. if: github.event_name == 'pull_request' steps: - - name: get pr commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@v1.3.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: check subject line length - uses: tim-actions/commit-message-checker-with-regex@v0.3.2 + uses: gsactions/commit-message-checker@v2 with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.{0,72}(\n.*)*$' + pattern: '^[^#].{72}' error: 'Subject too long (max 72)' + excludeDescription: 'true' # optional: this excludes the description body of a pull request + excludeTitle: 'true' # optional: this excludes the title of a pull request + checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request + accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true cfmt: runs-on: ubuntu-22.04 diff --git a/README.md b/README.md index b209c7dcd55..07c7cca999d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -# runc - -[![Go Report Card](https://goreportcard.com/badge/github.com/opencontainers/runc)](https://goreportcard.com/report/github.com/opencontainers/runc) +t c[![Go Report Card](https://goreportcard.com/badge/github.com/opencontainers/runc)](https://goreportcard.com/report/github.com/opencontainers/runc) [![Go Reference](https://pkg.go.dev/badge/github.com/opencontainers/runc.svg)](https://pkg.go.dev/github.com/opencontainers/runc) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/588/badge)](https://bestpractices.coreinfrastructure.org/projects/588) [![gha/validate](https://github.com/opencontainers/runc/workflows/validate/badge.svg)](https://github.com/opencontainers/runc/actions?query=workflow%3Avalidate)