Skip to content

Commit 854b5e8

Browse files
committed
Add ControlCheck library test
1 parent 5790329 commit 854b5e8

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
pull_request_target:
3+
types: [Created]
4+
jobs:
5+
test1:
6+
environment: EnvironmentInRepo
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Test 1
10+
run: echo "test1"
11+
test2:
12+
environment: EnvironmentNotInRepo
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Test 2
16+
run: echo "test2"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| .github/workflows/controlcheck.yml:6:18:6:34 | EnvironmentInRepo |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extensions:
2+
- addsTo:
3+
pack: codeql/actions-all
4+
extensible: enabledDeploymentEnvironmentDataModel
5+
data:
6+
# assumed to exist in a repo where controlcheck.yml exists
7+
# realisitically would need to be manually/externally provided
8+
- ["EnvironmentInRepo"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import actions
2+
import codeql.actions.security.ControlChecks
3+
4+
from ControlCheck c
5+
select c

0 commit comments

Comments
 (0)