Detection: Repository Archived
Overview
Detect when a GitHub repository was archived. Archiving a repository makes it read-only and may indicate a deprecation, a transition to maintenance mode, or an effort to preserve historical data. Monitoring these events ensures visibility into repository lifecycle decisions and potential impacts on development workflows.
References:
Usage
Run the detection in your terminal:
powerpipe detection run github_audit_log_detections.detection.repository_archived
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run github_audit_log_detections.detection.repository_archived --share
SQL
This detection uses a named query:
select tp_timestamp as timestamp,action as operation,concat('https://github.com/', repo) as resource,actor,tp_source_ip as source_ip,tp_index as organization,split_part(repo, '/', 2) as repository,tp_id as source_id,*exclude (actor, timestamp)
from github_audit_logwhere action = 'repo.archived'order by tp_timestamp desc;