Check signed commits for matching author for web commits

What does this MR do and why?

This change is to skip checking that author and user match for instance signed commits during rebasing. For example: rebasing a merge request from a fork would could have new commits from the upstream go through this check.

References

The check was originally introduced in: Check signed Web commits authorship on push (!150466 - merged)

How to set up and validate locally

For example:

PAYLOAD=$(cat << 'JSON'
{
  "branch": "main",
  "commit_message": "some commit message",
  "actions": [
    {
      "action": "create",
      "file_path": "foo/bars",
      "content": "some content"
    }
  ],
  "author_email": "non_matching_email@example.com",
  "author_name": "first last"
}
JSON
)
curl -XPOST \
  --header "PRIVATE-TOKEN: token" \
  --header "Content-Type: application/json" \
  --data "$PAYLOAD" \
  --url "http://gdk.test:3000/api/v4/projects/36/repository/commits"

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jerry Seto

Merge request reports

Loading