Skip to content

Update Devcontainers #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .devcontainer/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Install CodeQL Stub
cp ./.devcontainer/codeql.sh /usr/local/bin/codeql

# Clone an instance of the CodeQL repository
if [ ! -d "./codeql" ]; then
git clone --depth=1 https://github.com/github/codeql ./codeql
fi
2 changes: 2 additions & 0 deletions .devcontainer/codeql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
/root/.vscode-remote/data/User/globalStorage/github.vscode-codeql/distribution1/codeql/codeql $@
30 changes: 27 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
{
"name": "CodeQL-Community-Packs",
"postAttachCommand": ".devcontainer/bootstrap.sh",
"hostRequirements": {
"storage": "32gb",
"memory": "16gb",
"cpus": 4
},
"extensions": [
"github.vscode-codeql",
"github.copilot"
"github.copilot",
"ms-vscode.test-adapter-converter",
],
"settings": {
"codeQL.canary": true,
"codeQL.runningQueries.autoSave": true,
"codeQL.runningQueries.numberOfThreads": 4,
"codeQL.runningQueries.debug": true,
"editor.formatOnSave": true
},
"postCreateCommand": "git submodule init && git submodule update --recursive",
"remoteUser": "root"
}
"remoteUser": "root",
"customizations": {
"codespaces": {
"repositories": {
"github/gh-codeql": {
"permissions": {
"contents": "read"
}
},
"github/codeql": {
"permissions": {
"contents": "read"
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*.actual
*.class
*/*.class
# Cloned repository of codeql
/codeql

# Test files / folders
test.ql
Expand Down
Loading