codeql-action icon indicating copy to clipboard operation
codeql-action copied to clipboard

CODEQL_ACTION_CLEANUP_TRAP_CACHES is not working

Open hsbt opened this issue 7 months ago • 5 comments

From https://github.com/github/codeql-action/issues/2030#issuecomment-2844971762

CODEQL_ACTION_CLEANUP_TRAP_CACHES is not working now. CodeQL generate 300M+ cache each CI build. We always have trouble with the amount of limit by this problem.

  • Repository: https://github.com/ruby/ruby
  • Workflow: ttps://github.com/ruby/ruby/blob/master/.github/workflows/codeql-analysis.yml

Does anyone show how to run with debug mode with CodeQL with above action?

hsbt avatar May 02 '25 07:05 hsbt

Hi. Here are some instructions on how to run CodeQL in debug mode.

hvitved avatar May 02 '25 09:05 hvitved

I enabled debug option at https://github.com/ruby/ruby/actions/runs/14872449516/job/41763447167

hsbt avatar May 07 '25 01:05 hsbt

Ruby core team are in real trouble with this issue. But there is no solution today for this.

I added automated purge step for TRAP cache at https://github.com/ruby/ruby/pull/13330.

hsbt avatar May 14 '25 07:05 hsbt

Could you please try setting trap-caching: false in the with: section of the github/codeql-action/init step? That should disable the feature entirely.

adityasharad avatar May 14 '25 07:05 adityasharad

@adityasharad Thanks for your advice. I added trap-caching: false to our workflows. I will share that results after a few weeks later.

hsbt avatar May 23 '25 06:05 hsbt