Skip to content

commitlint.config.mjs rule is ignored #836

@turboBasic

Description

@turboBasic

Update

The issue is resolved, please close. Root cause: updated commitlint.config.mjs was ignored due to missing actions/checkout. After checkout step has been added, conventional commit linter worked as expected.

Original question

I cannot find out why body-max-line-length rule is ignored. I expect that body max line length should be 120 whereas error log reports that default value of 100 is used:

✖   body's lines must not be longer than 100 characters [body-max-line-length]

workflow

on:
  pull_request:
    types:
      - opened
      - edited
      - reopened
      - synchronize
      - ready_for_review
  push:

permissions:
  contents: read
  pull-requests: read

jobs:
  commit-messages:
    name: Validate commit messages
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - name: Enforce Conventional Commit format in commit messages
        uses: wagoid/commitlint-github-action@v6
        with:
          failOnWarnings: true

commitlint.config.mjs

export default {
  extends: ["@commitlint/config-conventional"],
  rules: {
    "body-max-line-length": [2, "always", 120],
  },
}

Log

2026-05-11T13:16:40.8970621Z ##[debug]Starting: Validate commit messages
2026-05-11T13:16:40.8992526Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp
2026-05-11T13:16:40.9092899Z ##[debug]Starting: Set up job
2026-05-11T13:16:40.9094046Z Current runner version: '2.334.0'
2026-05-11T13:16:40.9116312Z ##[group]Runner Image Provisioner
2026-05-11T13:16:40.9117060Z Hosted Compute Agent
2026-05-11T13:16:40.9117599Z Version: 20260213.493
2026-05-11T13:16:40.9118326Z Commit: 5c115507f6dd24b8de37d8bbe0bb4509d0cc0fa3
2026-05-11T13:16:40.9118985Z Build Date: 2026-02-13T00:28:41Z
2026-05-11T13:16:40.9119651Z Worker ID: {9d795ba2-ef12-41e9-8548-d1e9dab3f36a}
2026-05-11T13:16:40.9120376Z Azure Region: westus
2026-05-11T13:16:40.9120862Z ##[endgroup]
2026-05-11T13:16:40.9122443Z ##[group]Operating System
2026-05-11T13:16:40.9123069Z Ubuntu
2026-05-11T13:16:40.9123596Z 24.04.4
2026-05-11T13:16:40.9124020Z LTS
2026-05-11T13:16:40.9124512Z ##[endgroup]
2026-05-11T13:16:40.9125002Z ##[group]Runner Image
2026-05-11T13:16:40.9125554Z Image: ubuntu-24.04
2026-05-11T13:16:40.9126325Z Version: 20260413.86.1
2026-05-11T13:16:40.9127435Z Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20260413.86/images/ubuntu/Ubuntu2404-Readme.md
2026-05-11T13:16:40.9128809Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20260413.86
2026-05-11T13:16:40.9129715Z ##[endgroup]
2026-05-11T13:16:40.9130801Z ##[group]GITHUB_TOKEN Permissions
2026-05-11T13:16:40.9132915Z Contents: read
2026-05-11T13:16:40.9133447Z Metadata: read
2026-05-11T13:16:40.9133948Z PullRequests: read
2026-05-11T13:16:40.9134527Z ##[endgroup]
2026-05-11T13:16:40.9136724Z Secret source: Actions
2026-05-11T13:16:40.9137618Z ##[debug]Primary repository: turboBasic/aws-demo-environment
2026-05-11T13:16:40.9138473Z Prepare workflow directory
2026-05-11T13:16:40.9209857Z ##[debug]Creating pipeline directory: '/home/runner/work/aws-demo-environment'
2026-05-11T13:16:40.9213653Z ##[debug]Creating workspace directory: '/home/runner/work/aws-demo-environment/aws-demo-environment'
2026-05-11T13:16:40.9215623Z ##[debug]Update context data
2026-05-11T13:16:40.9219674Z ##[debug]Evaluating job-level environment variables
2026-05-11T13:16:40.9447081Z ##[debug]Evaluating job container
2026-05-11T13:16:40.9450653Z ##[debug]Evaluating job service containers
2026-05-11T13:16:40.9453509Z ##[debug]Evaluating job defaults
2026-05-11T13:16:40.9486386Z Prepare all required actions
2026-05-11T13:16:40.9543114Z Getting action download info
2026-05-11T13:16:41.3967653Z Download action repository 'wagoid/commitlint-github-action@v6' (SHA:b948419dd99f3fd78a6548d48f94e3df7f6bf3ed)
2026-05-11T13:16:41.7326707Z ##[debug]Download 'https://codeload.github.com/wagoid/commitlint-github-action/tar.gz/b948419dd99f3fd78a6548d48f94e3df7f6bf3ed' to '/home/runner/work/_actions/_temp_fb31ca62-6b27-42cb-a4ab-3c3677e2b18a/25bd3ff5-f48f-4381-b726-e25697f16965.tar.gz'
2026-05-11T13:16:41.8076310Z ##[debug]Unwrap 'commitlint-github-action-b948419dd99f3fd78a6548d48f94e3df7f6bf3ed' to '/home/runner/work/_actions/wagoid/commitlint-github-action/v6'
2026-05-11T13:16:41.8141352Z ##[debug]Archive '/home/runner/work/_actions/_temp_fb31ca62-6b27-42cb-a4ab-3c3677e2b18a/25bd3ff5-f48f-4381-b726-e25697f16965.tar.gz' has been unzipped into '/home/runner/work/_actions/wagoid/commitlint-github-action/v6'.
2026-05-11T13:16:41.8242961Z ##[debug]action.yml for action: '/home/runner/work/_actions/wagoid/commitlint-github-action/v6/action.yml'.
2026-05-11T13:16:41.8940077Z ##[debug]Container image for action: 'wagoid/commitlint-github-action:6.2.1'.
2026-05-11T13:16:41.9071289Z ##[debug]Set step '__wagoid_commitlint-github-action' display name to: 'Enforce Conventional Commit format in commit messages'
2026-05-11T13:16:41.9073487Z Complete job name: Validate commit messages
2026-05-11T13:16:41.9089395Z ##[debug]Collect running processes for tracking orphan processes.
2026-05-11T13:16:41.9306587Z ##[debug]Finishing: Set up job
2026-05-11T13:16:41.9439308Z ##[debug]Evaluating condition for step: 'Pull wagoid/commitlint-github-action:6.2.1'
2026-05-11T13:16:41.9478549Z ##[debug]Evaluating: success()
2026-05-11T13:16:41.9484173Z ##[debug]Evaluating success:
2026-05-11T13:16:41.9501736Z ##[debug]=> true
2026-05-11T13:16:41.9508465Z ##[debug]Result: true
2026-05-11T13:16:41.9535966Z ##[debug]Starting: Pull wagoid/commitlint-github-action:6.2.1
2026-05-11T13:16:41.9557625Z ##[group]Pull down action image 'wagoid/commitlint-github-action:6.2.1'
2026-05-11T13:16:41.9604089Z ##[command]/usr/bin/docker pull wagoid/commitlint-github-action:6.2.1
2026-05-11T13:16:42.8697093Z 6.2.1: Pulling from wagoid/commitlint-github-action
2026-05-11T13:16:42.8699683Z c6a83fedfae6: Pulling fs layer
2026-05-11T13:16:42.8701915Z d9aac50bc34e: Pulling fs layer
...
2026-05-11T13:16:49.5310401Z 89eacf6857e8: Pull complete
2026-05-11T13:16:49.5340850Z Digest: sha256:86a04e0a99128551a7555c269d2b675c3c85f61358cf7dd558f6b873b66f561a
2026-05-11T13:16:49.5355107Z Status: Downloaded newer image for wagoid/commitlint-github-action:6.2.1
2026-05-11T13:16:49.5370982Z docker.io/wagoid/commitlint-github-action:6.2.1
2026-05-11T13:16:49.5391726Z ##[endgroup]
2026-05-11T13:16:49.5401809Z ##[debug]Finishing: Pull wagoid/commitlint-github-action:6.2.1
2026-05-11T13:16:49.5421378Z ##[debug]Evaluating condition for step: 'Enforce Conventional Commit format in commit messages'
2026-05-11T13:16:49.5427097Z ##[debug]Evaluating: success()
2026-05-11T13:16:49.5427491Z ##[debug]Evaluating success:
2026-05-11T13:16:49.5427932Z ##[debug]=> true
2026-05-11T13:16:49.5428342Z ##[debug]Result: true
2026-05-11T13:16:49.5429248Z ##[debug]Starting: Enforce Conventional Commit format in commit messages
2026-05-11T13:16:49.5548840Z ##[debug]Loading inputs
2026-05-11T13:16:49.5577605Z ##[debug]Evaluating: github.token
2026-05-11T13:16:49.5578524Z ##[debug]Evaluating Index:
2026-05-11T13:16:49.5580173Z ##[debug]..Evaluating github:
2026-05-11T13:16:49.5581040Z ##[debug]..=> Object
2026-05-11T13:16:49.5586929Z ##[debug]..Evaluating String:
2026-05-11T13:16:49.5587548Z ##[debug]..=> 'token'
2026-05-11T13:16:49.5591968Z ##[debug]=> '***'
2026-05-11T13:16:49.5593880Z ##[debug]Result: '***'
2026-05-11T13:16:49.5595126Z ##[debug]Loading env
2026-05-11T13:16:49.5649911Z ##[group]Run wagoid/commitlint-github-action@v6
2026-05-11T13:16:49.5650425Z with:
2026-05-11T13:16:49.5650618Z   failOnWarnings: true
2026-05-11T13:16:49.5650851Z   configFile: ./commitlint.config.mjs
2026-05-11T13:16:49.5651106Z   failOnErrors: true
2026-05-11T13:16:49.5651479Z   helpURL: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
2026-05-11T13:16:49.5652269Z   token: ***
2026-05-11T13:16:49.5652708Z ##[endgroup]
2026-05-11T13:16:49.5777851Z ##[command]/usr/bin/docker run --name wagoidcommitlintgithubaction621_a26c52 --label 3467ad --workdir /github/workspace --rm -e "INPUT_FAILONWARNINGS" -e "INPUT_CONFIGFILE" -e "INPUT_FAILONERRORS" -e "INPUT_HELPURL" -e "INPUT_COMMITDEPTH" -e "INPUT_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_DEBUG" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e "ACTIONS_ORCHESTRATION_ID" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp":"/github/runner_temp" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/aws-demo-environment/aws-demo-environment":"/github/workspace" wagoid/commitlint-github-action:6.2.1
2026-05-11T13:16:50.6593840Z ##[error]You have commit messages with errors

⧗   input: chore(deps): bump hashicorp/aws from 6.42.0 to 6.44.0

Bumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 6.42.0 to 6.44.0. Very long line.
- [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases)
- [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-provider-aws/compare/v6.42.0...v6.44.0)

---
updated-dependencies:
- dependency-name: hashicorp/aws
  dependency-version: 6.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
✖   body's lines must not be longer than 100 characters [body-max-line-length]

✖   found 1 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

2026-05-11T13:16:50.7272782Z ##[debug]Docker Action run completed with exit code 1
2026-05-11T13:16:50.7314216Z ##[debug]Set output results = [{"hash":"f97e7ad9f259ce5b2b67324edd6773b4c64b4dbd","message":"chore(deps): bump hashicorp/aws from 6.42.0 to 6.44.0\n\nBumps [hashicorp/aws](https://github.com/hashicorp/terraform-provider-aws) from 6.42.0 to 6.44.0. Very long line.\n- [Release notes](https://github.com/hashicorp/terraform-provider-aws/releases)\n- [Changelog](https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/hashicorp/terraform-provider-aws/compare/v6.42.0...v6.44.0)\n\n---\nupdated-dependencies:\n- dependency-name: hashicorp/aws\n  dependency-version: 6.44.0\n  dependency-type: direct:production\n  update-type: version-update:semver-minor\n...\n\nSigned-off-by: dependabot[bot] <support@github.com>","valid":false,"errors":["body's lines must not be longer than 100 characters"],"warnings":[]},{"hash":"7b0cd1caebb8845b5e15e5c4059f10c414f3a475","message":"ci: update configuration of Conventional commit checker","valid":true,"errors":[],"warnings":[]}]
2026-05-11T13:16:50.7321557Z ##[debug]Finishing: Enforce Conventional Commit format in commit messages
2026-05-11T13:16:50.7377847Z ##[debug]Starting: Complete job
2026-05-11T13:16:50.7379588Z Uploading runner diagnostic logs
2026-05-11T13:16:50.7390689Z ##[debug]Starting diagnostic file upload.
2026-05-11T13:16:50.7391005Z ##[debug]Setting up diagnostic log folders.
2026-05-11T13:16:50.7393026Z ##[debug]Creating diagnostic log files folder.
2026-05-11T13:16:50.7400489Z ##[debug]Copying 1 worker diagnostic logs.
2026-05-11T13:16:50.7408477Z ##[debug]Copying 1 runner diagnostic logs.
2026-05-11T13:16:50.7409538Z ##[debug]Zipping diagnostic files.
2026-05-11T13:16:50.7484327Z ##[debug]Uploading diagnostic metadata file.
2026-05-11T13:16:50.7509336Z ##[debug]Diagnostic file upload complete.
2026-05-11T13:16:50.7509848Z Completed runner diagnostic log upload
2026-05-11T13:16:50.7510112Z Cleaning up orphan processes
2026-05-11T13:16:50.7857785Z ##[debug]Finishing: Complete job
2026-05-11T13:16:50.7889295Z ##[debug]Finishing: Validate commit messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions