Back to all reviewers

Use bot identity

fastify/fastify
Based on 2 comments
Yaml

When configuring Git operations in GitHub Actions workflows, especially for automated commits, use the GitHub Actions bot identity instead of personal user accounts. This clearly distinguishes automated actions from manual ones, provides better audit trails, and avoids personal attribution for system-generated changes.

CI/CD Yaml

Reviewer Prompt

When configuring Git operations in GitHub Actions workflows, especially for automated commits, use the GitHub Actions bot identity instead of personal user accounts. This clearly distinguishes automated actions from manual ones, provides better audit trails, and avoids personal attribution for system-generated changes.

Implementation:

- name: Git Config
  run: |
    git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
    git config --global user.name "github-actions[bot]"

This approach ensures that commit history properly reflects which changes were made through automation versus direct developer intervention, making repository history more transparent and accurate. It also prevents confusion that might arise when commits appear to come from individuals but are actually from automated processes.

2
Comments Analyzed
Yaml
Primary Language
CI/CD
Category

Source Discussions