Skip to content

Commit 27db0c5

Browse files
committed
Add actions lock integration test
Verify that Actions database creation extracts a realistic two-entry actions.lock file through the forwarded JavaScript extractor. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4994bb27-c5ca-47e9-b082-cfc1ca244e86
1 parent 5e344e8 commit 27db0c5

5 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import codeql.actions.Lock
2+
3+
from ActionsLock lock
4+
select lock.getFile()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: codeql/actions-lock-integration-test
2+
dependencies:
3+
codeql/actions-all: "*"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
on: push
2+
jobs:
3+
test:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- run: echo test
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.2'
5+
workflows:
6+
'.github/workflows/test.yml':
7+
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
8+
- 'github/codeql-action@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28'
9+
dependencies:
10+
'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1':
11+
ref: '3d3c42e5aac5ba805825da76410c181273ba90b1'
12+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
13+
owner_id: 44036562
14+
repo_id: 197814629
15+
'github/codeql-action@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28':
16+
ref: 'v4.37.8'
17+
commit: 'sha1-db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28'
18+
owner_id: 9919
19+
repo_id: 259445878
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def test_actions_lock(codeql, actions, javascript):
2+
codeql.database.create(source_root="src", language="actions")
3+
output = codeql.query.run("query/actions.ql", database="test-db", _capture=True)
4+
assert "actions.lock" in output

0 commit comments

Comments
 (0)