This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 2c84b06 Add ASF UID to all audit log entries
2c84b06 is described below
commit 2c84b06302928c0294af2c3410e3af6d172f04c6
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Sep 12 14:26:37 2025 +0100
Add ASF UID to all audit log entries
---
atr/storage/writers/announce.py | 2 +-
atr/storage/writers/project.py | 2 +-
atr/storage/writers/release.py | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/atr/storage/writers/announce.py b/atr/storage/writers/announce.py
index 4385e12..0f3abcd 100644
--- a/atr/storage/writers/announce.py
+++ b/atr/storage/writers/announce.py
@@ -192,7 +192,7 @@ class CommitteeMember(CommitteeParticipant):
# TODO: Set permissions to help enforce this, or find alternative
methods
await aioshutil.move(unfinished_dir, finished_dir)
self.__write_as.append_to_audit_log(
- action="announce.release",
+ asf_uid=self.__asf_uid,
project_name=project_name,
version_name=version_name,
revision_number=preview_revision_number,
diff --git a/atr/storage/writers/project.py b/atr/storage/writers/project.py
index c149d54..162985d 100644
--- a/atr/storage/writers/project.py
+++ b/atr/storage/writers/project.py
@@ -177,7 +177,7 @@ class CommitteeMember(CommitteeParticipant):
await self.__data.delete(project)
await self.__data.commit()
self.__write_as.append_to_audit_log(
- action="project.delete",
+ asf_uid=self.__asf_uid,
project_name=project_name,
)
return None
diff --git a/atr/storage/writers/release.py b/atr/storage/writers/release.py
index 238981f..96ec40f 100644
--- a/atr/storage/writers/release.py
+++ b/atr/storage/writers/release.py
@@ -273,7 +273,7 @@ class CommitteeParticipant(FoundationCommitter):
) as _creating:
pass
self.__write_as.append_to_audit_log(
- action="release.start",
+ asf_uid=self.__asf_uid,
project_name=project_name,
version=version,
created=release.created.isoformat(),
@@ -565,7 +565,7 @@ class CommitteeMember(CommitteeParticipant):
await self.__delete_release_data_downloads(release)
warning = await self.__delete_release_data_filesystem(release_dir,
project_name, version)
self.__write_as.append_to_audit_log(
- action="release.delete",
+ asf_uid=self.__asf_uid,
project_name=project_name,
version=version,
warning=warning,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]