Skip to content

fix(build-debian): Sanitize dependabot for DEBFULLNAME and DEBEMAIL#117

Closed
hk21702 wants to merge 1 commit intomainfrom
build-deb-dependabot
Closed

fix(build-debian): Sanitize dependabot for DEBFULLNAME and DEBEMAIL#117
hk21702 wants to merge 1 commit intomainfrom
build-deb-dependabot

Conversation

@hk21702
Copy link
Member

@hk21702 hk21702 commented Mar 19, 2026

Commits made by Dependabot use the name dependabot[bot] and email 49699333+dependabot[bot]@users.noreply.github.com. However, directly using this for DEBFULLNAME and DEBEMAIL causes issues with lintian, where lintian will error with malformed-contact against the changes file. Specifically, lintian dislikes the square brackets.

For an example of failures caused by this, see the following runs:
https://github.com/canonical/authd/actions/runs/23261849890?pr=1275
https://github.com/ubuntu/ubuntu-insights/actions/runs/23259662695/job/67624442465?pr=330

Just suppressing the malformed-contact tag isn't a great option in case there is a legitimate issue unrelated to Dependabot. Having CI skip builds when triggered by Dependabot also isn't an option, as we want to see if a dependency change will cause issues.

Since the email and name that Dependabot uses appear to be consistent and static, it should be fine to just hardcode the matching logic to prevent any false positives. We use support@github.com as the replacement email since Dependabot typically appends the following line at the end of its commit messages:

Signed-off-by: dependabot[bot] <support@github.com>

@hk21702 hk21702 self-assigned this Mar 19, 2026
@hk21702 hk21702 force-pushed the build-deb-dependabot branch from fed9d8e to a6aa461 Compare March 19, 2026 01:18
Commits made by Dependabot use the name `dependabot[bot]` and email `49699333+dependabot[bot]@users.noreply.github.com`. However, directly using this for DEBFULLNAME and DEBEMAIL causes issues with lintian, where lintian will error with `malformed-contact` against the changes file. Specifically, lintian dislikes the square brackets.

For an example of failures caused by this, see the following runs:
https://github.com/canonical/authd/actions/runs/23261849890?pr=1275
https://github.com/ubuntu/ubuntu-insights/actions/runs/23259662695/job/67624442465?pr=330

Just suppressing the `malformed-contact` tag isn't a great option in case there is a legitimate issue unrelated to Dependabot. Having CI skip builds when triggered by Dependabot also isn't an option, as we want to see if a dependency change will cause issues.

Since the email and name that Dependabot uses appear to be consistent and static, it should be fine to just hardcode the matching logic to prevent any false positives. We use `support@github.com` as the replacement email since Dependabot typically appends the following line at the end of its commit messages:

```
Signed-off-by: dependabot[bot] <support@github.com>
```
@hk21702 hk21702 force-pushed the build-deb-dependabot branch from a6aa461 to 0ad7dca Compare March 19, 2026 01:25
@adombeck
Copy link
Contributor

I already opened #116 to fix that issue

@hk21702
Copy link
Member Author

hk21702 commented Mar 19, 2026

I already opened #116 to fix that issue

Woops, I didn't notice. I'll go ahead and close this one then.

@hk21702 hk21702 closed this Mar 19, 2026
@hk21702 hk21702 deleted the build-deb-dependabot branch March 19, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants