mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Create placeholder Actions QL packs
This commit is contained in:
1
actions/ql/lib/actions.qll
Normal file
1
actions/ql/lib/actions.qll
Normal file
@@ -0,0 +1 @@
|
||||
// Placeholder
|
||||
12
actions/ql/lib/qlpack.yml
Normal file
12
actions/ql/lib/qlpack.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
name: codeql/actions-all
|
||||
version: 0.0.1-dev
|
||||
library: true
|
||||
warnOnImplicitThis: true
|
||||
dependencies:
|
||||
codeql/util: ${workspace}
|
||||
codeql/yaml: ${workspace}
|
||||
codeql/controlflow: ${workspace}
|
||||
codeql/dataflow: ${workspace}
|
||||
codeql/javascript-all: ${workspace}
|
||||
extractor: actions
|
||||
groups: actions
|
||||
16
actions/ql/src/Placeholder.ql
Normal file
16
actions/ql/src/Placeholder.ql
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @name Placeholder Query
|
||||
* @description Placeholder
|
||||
* @kind problem
|
||||
* @problem.severity warning
|
||||
* @security-severity 9.3
|
||||
* @precision high
|
||||
* @id actions/placeholder
|
||||
* @tags actions
|
||||
*/
|
||||
|
||||
import actions
|
||||
import javascript
|
||||
|
||||
from File f
|
||||
select f, "File"
|
||||
8
actions/ql/src/qlpack.yml
Normal file
8
actions/ql/src/qlpack.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
name: codeql/actions-queries
|
||||
version: 0.0.1-dev
|
||||
library: false
|
||||
groups: [actions, queries]
|
||||
extractor: actions
|
||||
dependencies:
|
||||
codeql/actions-all: ${workspace}
|
||||
warnOnImplicitThis: true
|
||||
23
actions/ql/test/library-tests/.github/workflows/shell.yml
vendored
Normal file
23
actions/ql/test/library-tests/.github/workflows/shell.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
job1:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: pwsh
|
||||
run: Write-Output "foo"
|
||||
job2:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "foo"
|
||||
|
||||
job3:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- shell: bash
|
||||
run: echo "foo"
|
||||
job4:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- run: Write-Output "foo"
|
||||
|
||||
1
actions/ql/test/library-tests/Placeholder.expected
Normal file
1
actions/ql/test/library-tests/Placeholder.expected
Normal file
@@ -0,0 +1 @@
|
||||
| 1 |
|
||||
1
actions/ql/test/library-tests/Placeholder.ql
Normal file
1
actions/ql/test/library-tests/Placeholder.ql
Normal file
@@ -0,0 +1 @@
|
||||
select 1
|
||||
8
actions/ql/test/qlpack.yml
Normal file
8
actions/ql/test/qlpack.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
name: codeql/actions-tests
|
||||
groups: [codeql, test]
|
||||
dependencies:
|
||||
codeql/actions-all: ${workspace}
|
||||
codeql/actions-queries: ${workspace}
|
||||
extractor: actions
|
||||
tests: .
|
||||
warnOnImplicitThis: true
|
||||
23
actions/ql/test/query-tests/Placeholder/.github/workflows/shell.yml
vendored
Normal file
23
actions/ql/test/query-tests/Placeholder/.github/workflows/shell.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
job1:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: pwsh
|
||||
run: Write-Output "foo"
|
||||
job2:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "foo"
|
||||
|
||||
job3:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- shell: bash
|
||||
run: echo "foo"
|
||||
job4:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- run: Write-Output "foo"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
| .github/workflows/shell.yml:0:0:0:0 | .github/workflows/shell.yml | File |
|
||||
@@ -0,0 +1 @@
|
||||
Placeholder.ql
|
||||
Reference in New Issue
Block a user