Skip to content

Commit 028cece

Browse files
committed
Add PR check
1 parent 198fb4b commit 028cece

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

.github/workflows/__extract-direct-to-toolcache.yml

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Extract directly to toolcache"
2+
description: "Extract the CodeQL bundle directly into the toolcache"
3+
versions:
4+
- linked
5+
operatingSystems:
6+
- macos
7+
- ubuntu
8+
env:
9+
CODEQL_ACTION_EXTRACT_TOOLCACHE: true
10+
CODEQL_ACTION_ZSTD_BUNDLE: true
11+
steps:
12+
- name: Remove CodeQL from toolcache
13+
uses: actions/github-script@v7
14+
with:
15+
script: |
16+
const fs = require('fs');
17+
const path = require('path');
18+
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
19+
fs.rmdirSync(codeqlPath, { recursive: true });
20+
- id: init
21+
uses: ./../action/init
22+
with:
23+
languages: javascript
24+
tools: ${{ steps.prepare-test.outputs.tools-url }}
25+
- uses: ./../action/analyze
26+
with:
27+
output: ${{ runner.temp }}/results
28+
upload-database: false

0 commit comments

Comments
 (0)