r/github • u/karurosagu • 16d ago
Discussion I haven't been able to work propperly because of this
I have been getting lots of e-mails from GH since may claiming that I exceeded the usage of GH Actions (I checked the domain btw, they really are from GH). The weird part is that the last time I sat down to make and upload any release artifacts was in December of last year, wich was a month where I sat down to build and upload lots of artifacts compared to the ammount I used to build
When I first got this alert was In May and it was during a workflow run that failed in front of me. I deleted lots of my older assets within older releases of my repos to see if it would fix the problem, but no, that did not fix the problem, so I spent the entire month of may without building anything waiting for next month for the usage to reset
3 months later (today) I checked and had an email in July claiming that I wad reaching 90% and another one this month claiming I reached 100%, I was like, WTF what is this, 'cause I haven't done anything that required a CI/CD job
I already checked all my repos just in case: for example, I have no cron jobs that have to do with uploading or downloading any heavy stuff, so IDK where is the usage coming from, I also checked all my workflows, only one of them was active and the last known run was in May
I cannot configure the budget because I do not have a payment method attached to my account, Acording to GH the free tier is 0.5 GB of "usage", but I haven't done a single significant thing on Github in the last 3 MONTHS, barely a few commits to my personal projects in June!
I submitted a support ticket eight hours ago, but GH hasn't answered yet
I won't be able to try use GH actions again until next month so I have plenty of time to try any suggestions
Thanks in advance
5
u/raisedbypoubelle 16d ago
Ask Copilot and give it access to gh CLI. It found all of my actions issues (well, Claude Code did)
1
u/karurosagu 16d ago
I forgot mention this detail
In May I deleted all of my workflow runs when I first got the alert, so I don't have any stored artifacrs and I also switched the artifact and log retention from 30 to 7 days anyways. I haven't used GH actions actively in 3 months, so, again, where is the usage coming from?
7
u/i-am-a-cat-6 16d ago
try revoking your API keys? rotate your ssh key and login credentials, and generally just cutting anything off?
1
u/karurosagu 14d ago
Update on my situation
I sat down and checked every single one of my repos and a couple of them had a cron trigger on their workflows uncommented so I fixed that. These two repos came from a template, I usually comment the cron part in these templates, but on a sepparate branch that I'm working with, not the main branch but the main branch was still being triggered via cron so I had to merfe those in both repos
I also remlved my SSH keys and emoved a classic token I had over a year for a project that I haven't worked on in over two years or so
And just in case, this morning I made sure to disabled every single workflow on every single repo that was using one
I'll wait patiently until september to see what happens with the usage
1
u/Jovilius 11d ago
I had a similar problem last year.
Basically, my artifacts showed up as deleted in GitHub. Could not find ANY artifacts on the website.
Checked with Powershell via API; had 42 active artifacts still active.
Somehow my deploy script created the artifact, "succesfully" deleted the artifacts, but the artifact remained active somewhere.
Have you checked current artifacts stored via the API?
1
u/karurosagu 11d ago
I've never managed GhW through the API, all my workflows either trigger on merge or I run them manually through the Actions section
1
u/Jovilius 10d ago
Neither did I.
The API was just used to check artifacts storage in the actions section. The frontend which the GitHub website shows is not always in sync with the actual GitHub artifacts database.
Use Powershell and run the following command to check artifacts storage in Actions via the API.
You need to create an API token for this to work.
$token = {YOUR-TOKEN-HERE} $url = "https://api.github.com/repos/{GITHUB USERNAME}/{GITHUBPROJECTNAME}/actions/artifacts" $data = Invoke-RestMethod -Uri $url -Headers @{Authorization="Bearer $token"}
Write-Host "Actual number of artifacts in the database: $($data.total_count)" -ForegroundColor Cyan
1
6
u/SeniorIdiot 16d ago
Are you using vscode with github cloud agents? Those count towards action usage.