mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
fix(actions): ql pack installation
This commit is contained in:
2
.github/action/dist/index.js
vendored
2
.github/action/dist/index.js
vendored
@@ -28677,9 +28677,7 @@ async function downloadPack(codeql) {
|
||||
exports.downloadPack = downloadPack;
|
||||
async function installPack(codeql, dir) {
|
||||
try {
|
||||
await runCommand(codeql, ["pack", "download", "githubsecuritylab/actions-all"], path.join(dir, "/ql/lib"));
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/lib"));
|
||||
await runCommand(codeql, ["pack", "download", "githubsecuritylab/actions-queries"], path.join(dir, "/ql/src"));
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/src"));
|
||||
return true;
|
||||
}
|
||||
|
||||
10
.github/action/src/codeql.ts
vendored
10
.github/action/src/codeql.ts
vendored
@@ -111,17 +111,7 @@ export async function installPack(
|
||||
dir: string,
|
||||
): Promise<boolean> {
|
||||
try {
|
||||
await runCommand(
|
||||
codeql,
|
||||
["pack", "download", "githubsecuritylab/actions-all"],
|
||||
path.join(dir, "/ql/lib"),
|
||||
);
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/lib"));
|
||||
await runCommand(
|
||||
codeql,
|
||||
["pack", "download", "githubsecuritylab/actions-queries"],
|
||||
path.join(dir, "/ql/src"),
|
||||
);
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/src"));
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
||||
42
.github/workflows/simple2.yml
vendored
Normal file
42
.github/workflows/simple2.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
changed_files:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test changed-files
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get changed files
|
||||
id: source
|
||||
uses: tj-actions/changed-files@v40
|
||||
|
||||
- name: Remove foo from changed files
|
||||
id: step
|
||||
uses: mad9000/actions-find-and-replace-string@3
|
||||
with:
|
||||
source: ${{ steps.source.outputs.all_changed_files }}
|
||||
find: 'foo'
|
||||
replace: ''
|
||||
|
||||
- name: List all changed files
|
||||
id: sink
|
||||
run: |
|
||||
for file in ${{ steps.step.outputs.value }}; do
|
||||
echo "$file was changed"
|
||||
done
|
||||
|
||||
- name: List all changed files
|
||||
id: no-flow
|
||||
run: |
|
||||
for file in ${{ steps.source.outputs.all_changed_files_count }}; do
|
||||
echo "$file was changed"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user