Skip to content

demo of some code to track the traffic on multiple repos beyond the 15 days limit

Notifications You must be signed in to change notification settings

WandrilleD/track_multiple_repos_traffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

track_multiple_repos_traffic

Demo of some code to track the traffic on multiple repos beyond the 15 days limit

this repo draws a lot of inspiration from the repository-traffic-action. We encourage you to have a look at it if this sort of things are interesting to you.

Using github actions, we execute a python script (scan_multiple_github_repo_traffic.py) which looks at the github repositories listed in repos_to_watch.txt.

The traffic information is stored and updated in the traffic/ folder.

To be able to access the traffic information, we have defined a "TRAFFIC_ACTION_TOKEN" secret on this repo which contains a Personal Access Token with the requisite accesses to the tracked repositories (for a fine-grained PAT, you need to allow permission for "administration", read-only is enough).

Additionally, we need to ensure that this repo's action can perform commits. For this, go to: Settings → Actions → General → Workflow permissions and make sure “Read and write permissions” is selected (not just “Read repository contents”).

About

demo of some code to track the traffic on multiple repos beyond the 15 days limit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages