Skip to content

Commit 7f93f3c

Browse files
Merge pull request #47 from dsp-testing/robertbrignull/manual_test_workflow
Add workflow for manual testing
2 parents f195d11 + 060e31d commit 7f93f3c

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/manual-test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "Manual test"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
query:
7+
default: "import go\nfrom File f select f"
8+
9+
jobs:
10+
run-query:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
# This might not be the cleanest way to get hold of CodeQL but it's reliable
17+
# and widely used. The ugly part is that is initialises a database of the
18+
# given language that we just ignore.
19+
- name: Initialize CodeQL
20+
id: init
21+
uses: github/codeql-action/init@v1
22+
with:
23+
languages: "go"
24+
25+
- name: Run query
26+
uses: ./query
27+
with:
28+
query: ${{ github.event.inputs.query }}
29+
language: "go"
30+
repositories: "[{\"id\": 376068344, \"nwo\": \"dsp-testing/qc-demo-github-certstore\", \"pat\": \"${{ secrets.BOT_TOKEN }}\"}]"
31+
codeql: ${{ steps.init.outputs.codeql-path }}
32+
33+
combine-results:
34+
runs-on: ubuntu-latest
35+
needs:
36+
- run-query
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
41+
- name: Combine results
42+
uses: ./combine-results
43+
with:
44+
query: ${{ github.event.inputs.query }}
45+
language: "go"
46+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)