Skip to content

Commit

Permalink
merge README
Browse files Browse the repository at this point in the history
  • Loading branch information
lyc8503 committed Dec 8, 2023
2 parents 9bec7c1 + 3efade5 commit cc64217
Show file tree
Hide file tree
Showing 563 changed files with 129,677 additions and 36,848 deletions.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ contact_links:
- name: LogApiDll (sandboxie-plus/LogApiDll)
url: https://github.com/sandboxie-plus/LogApiDll
about: API logging library that adds a verbose output to Sandboxie's trace log.
- name: Sbiextra (sandboxie-plus/sbiextra)
url: https://github.com/sandboxie-plus/sbiextra
about: A DLL that adds additional user mode restrictions to sandboxed processes.
3 changes: 3 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
query-filters:
- exclude:
id: cpp/incorrect-string-type-conversion
103 changes: 103 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: "CodeQL"

on:
workflow_dispatch:
push:
branches: [ 'master' ]
paths:
- '**.c'
- '**.cpp'
- '**.h'
pull_request:
types:
- opened
# The branches below must be a subset of the branches above.
branches: [ 'master' ]
paths:
- '**.c'
- '**.cpp'
- '**.h'
schedule:
- cron: '33 7 * * 6'

jobs:
analyze:
name: Analyze
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
runs-on: windows-2019
timeout-minutes: 60

permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both.
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both.
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Cleanup build folder
run: |
rm -r -Force ${{ github.workspace }}\*
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup msbuild
uses: microsoft/setup-msbuild@v1

# Qt 6 is only required for ARM64 build currently.
# - name: Install Qt6 x64
# uses: jurplel/install-qt-action@v3
# with:
# version: '6.3.1'
# arch: 'win64_msvc2019_64'

- name: Install Qt5 x64
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
arch: 'win64_msvc2019_64'
cache: true

- name: Installing Jom
run: SandboxiePlus\install_jom.cmd

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
# 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

- name: Build Sandboxie x86
run: msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=Win32 -maxcpucount:8

- name: Build Sandboxie x64
run: msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=x64 -maxcpucount:8

- name: Build Sandboxie-Plus x64
run: SandboxiePlus\qmake_plus.cmd x64

- name: Build SbieShell x64
run: msbuild /t:restore,build -p:RestorePackagesConfig=true SandboxiePlus\SbieShell\SbieShell.sln /p:Configuration="Release" /p:Platform=x64

- name: Build Sandboxie-Tools x64
run: msbuild /t:build SandboxieTools\SandboxieTools.sln /p:Configuration="Release" /p:Platform=x64 -maxcpucount:8

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
42 changes: 36 additions & 6 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check spelling errors
run: |
Expand All @@ -46,6 +46,7 @@ jobs:
echo 'linve->live' >> dictionary.txt
echo 'actuallly->actually' >> dictionary.txt
echo 'asynchroniusly->asynchronously' >> dictionary.txt
echo 'synchroniusly->synchronously' >> dictionary.txt
echo 'seams->seems' >> dictionary.txt
echo 'selelction->selection' >> dictionary.txt
echo 'injectted->injected' >> dictionary.txt
Expand Down Expand Up @@ -75,15 +76,44 @@ jobs:
echo 'auxyliary->auxiliary' >> dictionary.txt
echo 'squating->squatting' >> dictionary.txt
echo 'suppoter->supporter' >> dictionary.txt
echo 'crome->Chrome' >> dictionary.txt
echo 'chromim->Chromium' >> dictionary.txt
echo 'sandbocie->Sandboxie' >> dictionary.txt
echo 'routime->routine' >> dictionary.txt
echo 'explorere->explorer' >> dictionary.txt
echo 'mein->main' >> dictionary.txt
echo 'trigegred->triggered' >> dictionary.txt
echo 'windoe->window' >> dictionary.txt
echo 'hread->thread' >> dictionary.txt
echo 'tamplete->template' >> dictionary.txt
echo 'prising->praising' >> dictionary.txt
echo 'wi->we, will, ' >> dictionary.txt
echo 'dayly->daily' >> dictionary.txt
echo 'erdinal->ordinal' >> dictionary.txt
echo 'wizars->wizard' >> dictionary.txt
echo 'pined->pinned' >> dictionary.txt
echo 'inidcate->indicate' >> dictionary.txt
echo 'unsoecific->unspecific' >> dictionary.txt
echo 'soecific->specific' >> dictionary.txt
echo 'cpecific->specific' >> dictionary.txt
echo 'incomatible->incompatible' >> dictionary.txt
echo 'maliciouse->malicious' >> dictionary.txt
echo 'strickt->strict' >> dictionary.txt
echo 'brak->break' >> dictionary.txt
echo 'booth->both' >> dictionary.txt
echo 'vcertificate->certificate' >> dictionary.txt
echo 'fron->front' >> dictionary.txt
echo 'ahndling->handling' >> dictionary.txt
echo 'previwe->preview' >> dictionary.txt
echo 'variouse->various' >> dictionary.txt
echo 'resumeed->resumed' >> dictionary.txt
echo 'crome->Chrome' >> dictionary_code.txt
echo 'chromim->Chromium' >> dictionary_code.txt
echo 'kmdutill->kmdutil' >> dictionary_code.txt
echo 'ancrypted->encrypted' >> dictionary_code.txt
echo 'hadrware->hardware' >> dictionary_code.txt
echo 'sandbocie->Sandboxie' >> dictionary_code.txt
echo 'sanboxie->Sandboxie' >> dictionary_code.txt
echo "sandboxies->Sandboxie's, sandboxed, " >> dictionary_code.txt
echo 'reparese->reparse' >> dictionary_code.txt
# Only lowercase letters are allowed in --ignore-words-list
codespell --dictionary=dictionary.txt --dictionary=dictionary_rare.txt --dictionary=dictionary_code.txt \
--ignore-words-list="wil,unknwn,tolen,pevent,doubleclick,parm,parms,etcp,ois,ba,ptd,modell,namesd,stdio,uint,errorstring,ontext,atend,deque,ecounter,nmake,namess,inh,daa,varient,lite,uis,emai,ws,slanguage" \
--skip="./.git,./.github/workflows/codespell.yml,./dictionary*.txt,./Sandboxie/msgs/Text-*-*.txt,./Sandboxie/msgs/report/Report-*.txt,./SandboxiePlus/SandMan/*.ts,./Installer/Languages.iss,./Installer/isl/*.isl,./Sandboxie/common/Detours/Makefile,./Sandboxie/common/Detours/disasm.cpp"
--ignore-words-list="wil,unknwn,tolen,pevent,doubleclick,parm,parms,etcp,ois,ba,ptd,modell,namesd,stdio,uint,errorstring,ontext,atend,deque,ecounter,nmake,namess,inh,daa,varient,lite,uis,emai,ws,slanguage,woh,tne,typpos,enew,shft,seh,ser,servent" \
--skip="./.git,./.github/workflows/codespell.yml,./dictionary*.txt,./Sandboxie/msgs/Text-*-*.txt,./Sandboxie/msgs/report/Report-*.txt,./SandboxiePlus/SandMan/*.ts,./Installer/Languages.iss,./Installer/isl/*.isl,./Sandboxie/common/Detours/Makefile,./Sandboxie/common/Detours/disasm.cpp,./Sandboxie/install/build.bat,./SandboxieTools/ImBox/dc/crypto_fast/xts_fast.c,./Sandboxie/apps/control/TreePropSheet.h,./Sandboxie/apps/control/PropPageFrame.h,./Sandboxie/apps/control/PropPageFrameDefault.h,./SandboxiePlus/SandMan/Troubleshooting/lang_*.json"
10 changes: 5 additions & 5 deletions .github/workflows/lupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
sudo apt-get install --no-install-recommends qtbase5-dev qttools5-dev-tools
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Sync Sbie Plus language strings (.ts files)
id: check
Expand Down Expand Up @@ -57,15 +57,15 @@ jobs:
steps:

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup msbuild
uses: microsoft/[email protected]

- name: Build Sandboxie 64 bit
# This is needed to compile Parse.vcxproj
- name: Build Sandboxie x86
# This step is needed to compile Parse.vcxproj
run: |
msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=x64 -maxcpucount:8
msbuild /t:build Sandboxie\Sandbox.sln /p:Configuration="SbieRelease" /p:Platform=Win32 -maxcpucount:8
cd Sandboxie/msgs/SbieRelease
copy Parse.exe ../
Expand Down
Loading

0 comments on commit cc64217

Please sign in to comment.