Skip to content

Commit dffc9e2

Browse files
author
Dave Bartolomeo
committed
Create placeholder Actions QL packs
1 parent 47a7d24 commit dffc9e2

File tree

11 files changed

+95
-0
lines changed

11 files changed

+95
-0
lines changed

actions/ql/lib/actions.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Placeholder

actions/ql/lib/qlpack.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: codeql/actions-all
2+
version: 0.0.1-dev
3+
library: true
4+
warnOnImplicitThis: true
5+
dependencies:
6+
codeql/util: ${workspace}
7+
codeql/yaml: ${workspace}
8+
codeql/controlflow: ${workspace}
9+
codeql/dataflow: ${workspace}
10+
codeql/javascript-all: ${workspace}
11+
extractor: actions
12+
groups: actions

actions/ql/src/Placeholder.ql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @name Placeholder Query
3+
* @description Placeholder
4+
* @kind problem
5+
* @problem.severity warning
6+
* @security-severity 9.3
7+
* @precision high
8+
* @id actions/placeholder
9+
* @tags actions
10+
*/
11+
12+
import actions
13+
import javascript
14+
15+
from File f
16+
select f, "File"

actions/ql/src/qlpack.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: codeql/actions-queries
2+
version: 0.0.1-dev
3+
library: false
4+
groups: [actions, queries]
5+
extractor: actions
6+
dependencies:
7+
codeql/actions-all: ${workspace}
8+
warnOnImplicitThis: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on: push
2+
3+
jobs:
4+
job1:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- shell: pwsh
8+
run: Write-Output "foo"
9+
job2:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- run: echo "foo"
13+
14+
job3:
15+
runs-on: windows-latest
16+
steps:
17+
- shell: bash
18+
run: echo "foo"
19+
job4:
20+
runs-on: windows-latest
21+
steps:
22+
- run: Write-Output "foo"
23+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| 1 |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
select 1

actions/ql/test/qlpack.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: codeql/actions-tests
2+
groups: [codeql, test]
3+
dependencies:
4+
codeql/actions-all: ${workspace}
5+
codeql/actions-queries: ${workspace}
6+
extractor: actions
7+
tests: .
8+
warnOnImplicitThis: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on: push
2+
3+
jobs:
4+
job1:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- shell: pwsh
8+
run: Write-Output "foo"
9+
job2:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- run: echo "foo"
13+
14+
job3:
15+
runs-on: windows-latest
16+
steps:
17+
- shell: bash
18+
run: echo "foo"
19+
job4:
20+
runs-on: windows-latest
21+
steps:
22+
- run: Write-Output "foo"
23+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| .github/workflows/shell.yml:0:0:0:0 | .github/workflows/shell.yml | File |

0 commit comments

Comments
 (0)