Skip to content

Commit

Permalink
Add PR check
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mercer committed Dec 2, 2024
1 parent 198fb4b commit 028cece
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/__extract-direct-to-toolcache.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions pr-checks/checks/extract-direct-to-toolcache.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 028cece

Please sign in to comment.