Add PR check
This commit is contained in:
parent
198fb4b4b2
commit
028cece17f
2 changed files with 103 additions and 0 deletions
28
pr-checks/checks/extract-direct-to-toolcache.yml
Normal file
28
pr-checks/checks/extract-direct-to-toolcache.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: "Extract directly to toolcache"
|
||||
description: "Extract the CodeQL bundle directly into the toolcache"
|
||||
versions:
|
||||
- linked
|
||||
operatingSystems:
|
||||
- macos
|
||||
- ubuntu
|
||||
env:
|
||||
CODEQL_ACTION_EXTRACT_TOOLCACHE: true
|
||||
CODEQL_ACTION_ZSTD_BUNDLE: true
|
||||
steps:
|
||||
- name: Remove CodeQL from toolcache
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
- id: init
|
||||
uses: ./../action/init
|
||||
with:
|
||||
languages: javascript
|
||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||
- uses: ./../action/analyze
|
||||
with:
|
||||
output: ${{ runner.temp }}/results
|
||||
upload-database: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue