]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Update github-actions user for GitHub Actions workflows (#14528)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 16 Dec 2025 12:34:01 +0000 (04:34 -0800)
committerGitHub <noreply@github.com>
Tue, 16 Dec 2025 12:34:01 +0000 (12:34 +0000)
scripts/contributors.py
scripts/people.py
scripts/sponsors.py
scripts/topic_repos.py
scripts/translate.py

index 251558de7f4b15c2242bf4d42f5911773947e1dd..af1434d7950fda465ef2b4ea2383476fc1f91220 100644 (file)
@@ -282,9 +282,10 @@ def main() -> None:
         return
 
     logging.info("Setting up GitHub Actions git user")
-    subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
+    subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
     subprocess.run(
-        ["git", "config", "user.email", "github-actions@github.com"], check=True
+        ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
+        check=True,
     )
     branch_name = f"fastapi-people-contributors-{secrets.token_hex(4)}"
     logging.info(f"Creating a new branch {branch_name}")
index 7418b459561c19885015d08e15ec9540f75b7c7b..65e009944c9c3656ec267bb2166f1834745e985e 100644 (file)
@@ -378,9 +378,10 @@ def main() -> None:
         return
 
     logging.info("Setting up GitHub Actions git user")
-    subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
+    subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
     subprocess.run(
-        ["git", "config", "user.email", "github-actions@github.com"], check=True
+        ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
+        check=True,
     )
     branch_name = f"fastapi-people-experts-{secrets.token_hex(4)}"
     logging.info(f"Creating a new branch {branch_name}")
index 45e02bd621b191aa38c534defa87e08a7765acef..fdcabc737b2df38dd48f1d6790953f87885dbc4e 100644 (file)
@@ -190,9 +190,10 @@ def main() -> None:
         return
 
     logging.info("Setting up GitHub Actions git user")
-    subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
+    subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
     subprocess.run(
-        ["git", "config", "user.email", "github-actions@github.com"], check=True
+        ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
+        check=True,
     )
     branch_name = f"fastapi-people-sponsors-{secrets.token_hex(4)}"
     logging.info(f"Creating a new branch {branch_name}")
index bc14977513c623da67f729a4ab67aea0dcc30d73..b7afc0864ac9c2fc33fcc0740e718913e2bc7db0 100644 (file)
@@ -56,9 +56,10 @@ def main() -> None:
         return
     repos_path.write_text(new_repos_content, encoding="utf-8")
     logging.info("Setting up GitHub Actions git user")
-    subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
+    subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
     subprocess.run(
-        ["git", "config", "user.email", "github-actions@github.com"], check=True
+        ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
+        check=True,
     )
     branch_name = f"fastapi-topic-repos-{secrets.token_hex(4)}"
     logging.info(f"Creating a new branch {branch_name}")
index ede101e8fcd7db7dc7079c724277878994be2360..7b8d090e5293601293527f7309148c4f996cd6a5 100644 (file)
@@ -947,9 +947,10 @@ def make_pr(
     if not repo.is_dirty(untracked_files=True):
         print("Repository is clean, no changes to commit")
         return
-    subprocess.run(["git", "config", "user.name", "github-actions"], check=True)
+    subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
     subprocess.run(
-        ["git", "config", "user.email", "github-actions@github.com"], check=True
+        ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
+        check=True,
     )
     branch_name = "translate"
     if language: