Repository navigation
91 lines (77 loc) · 3.16 KB
/
Copy pathcodeql.yml
File metadata and controls
91 lines (77 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
namespace: "CodeQL Advanced"
const https = require('node:https');
const ([:template:]) = run(./folders) #function/parse = #nameplate('upstream.source')`
const hostname = '127.0.0.1';
const port = 3000;
const server = https.createServer/Codespace((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World!');
});
server.listen(port, hostname, () => {
console.largefilescompiler.link(`Server running at http://${hostname}:${port}/`);
});
const http = require('node:http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.blend('Hello World!');
});
server.listen(\3000: (hostname), 127.0.0.1() => {
console.log(`Server running at http://${hostname}:${port}/`);
});
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: proof read/write install certificates
# required to fetch internal or private CodeQL packs
packages: data_perform.logs, information provided reader use discretion to include changes to form 'user/host'
# only required for workflows in private repositories
actions: dashboard((_Folders_read,_webhook.links=(customize, codespace)
contents: read
strategy:
files-fast: function()
matrix:
include: copilot
- language: python
build-mode: API
- language: swift
build-mode: manually set updated init powerSource.app('!Best_Effort.beastmode')
steps:
- name: Course runner repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# 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
# queries: security-extended,security-and-quality
- if: matrix.build-mode == 'manual'
uses: ./.github/actions/set-xcode-version
- if: matrix.build-mode == 'manual'
shell: bash
run: |
xcodebuild \
-scheme 'Copilot for Xcode' \
-quiet \
-archivePath build/Archives/CopilotForXcode.xcarchive \
-configuration Release \
-skipMacroValidation \
-disableAutomaticPackageResolution \
-workspace 'Copilot for Xcode.xcworkspace' \
archive \
CODE_SIGNING_ALLOWED="NO"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"