Skip to content

Commit cc63bda

Browse files
committed
AIO Build Default Runners
1 parent 0b02e04 commit cc63bda

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

.github/workflows/CodeQL_AIO_Native_Runner_Example.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
Example01_JavaScript:
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: /home/runner/work/CodeQL_containerizedApp/CodeQL_containerizedApp/Example01_JavaScript/
1215
permissions:
1316
actions: read
1417
contents: read
@@ -19,7 +22,6 @@ jobs:
1922
matrix:
2023
language: [javascript]
2124

22-
2325
steps:
2426
- name: Checkout repository
2527
uses: actions/checkout@v3
@@ -30,29 +32,12 @@ jobs:
3032
with:
3133
languages:
3234
${{ matrix.language }}
33-
# If you wish to specify custom queries, you can do so here or in a config file.
34-
# By default, queries listed here will override any specified in a config file.
35-
# Prefix the list here with "+" to use these queries and those in the config file.
3635

37-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
38-
# queries: security-extended,security-and-quality
39-
40-
- name: NPM Installation
41-
working-directory: /home/runner/work/CodeQL_containerizedApp/CodeQL_containerizedApp/Example01_JavaScript/
42-
run: |
43-
npm i -g typescript ts-node && \
44-
npm install --omit=dev --unsafe-perm && \
45-
npm dedupe && \
46-
rm -rf frontend/node_modules && \
47-
rm -rf frontend/.angular && \
48-
rm -rf frontend/src/assets && \
49-
mkdir logs && \
50-
chown -R 65532 logs && \
51-
chgrp -R 0 ftp/ frontend/dist/ logs/ data/ i18n/ && \
52-
chmod -R g=u ftp/ frontend/dist/ logs/ data/ i18n/ && \
53-
rm data/chatbot/botDefaultTrainingData.json || true && \
54-
rm ftp/legal.md || true && \
55-
rm i18n/*.json || true
36+
- name: Autobuild
37+
uses: github/codeql-action/autobuild@v2
38+
39+
- name: Perform CodeQL Analysis
40+
uses: github/codeql-action/analyze@v2
5641

5742
- name: Perform CodeQL Analysis
5843
uses: github/codeql-action/analyze@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ When your workflow runs, GitHub Actions will start a container using the specifi
113113
|Example01_JavaScript | JavaScript | 5 Minutes and 10 Seconds |
114114
|Example01_Java | Java | 2 Minutes and 04 seconds |
115115
|Example01_C# | C# | 7 Minutes and 47 Seconds |
116-
|Example01_Python | Python | 4 Minutes and 39 Seconds |
116+
|Example01_Python | Python | 1 Minute 9 Seconds |
117117
118118
119119

0 commit comments

Comments
 (0)