summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2025-01-31 14:16:20 +0100
committerLinus Färnstrand <linus@mullvad.net>2025-03-04 10:35:10 +0100
commit71190b22369ab11b08bce34e8ce136869ca2a070 (patch)
treec062811e5fbba70d9c9d4ef2b68810257894ff3f /.github/workflows
parentf31658c25760b796dd2775fcdbf7d8b980618d9d (diff)
downloadmullvadvpn-71190b22369ab11b08bce34e8ce136869ca2a070.tar.xz
mullvadvpn-71190b22369ab11b08bce34e8ce136869ca2a070.zip
Run the unicop tool on this repository
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/unicop.yml44
-rw-r--r--.github/workflows/verify-locked-down-signatures.yml1
2 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/unicop.yml b/.github/workflows/unicop.yml
new file mode 100644
index 0000000000..868b3d7bbf
--- /dev/null
+++ b/.github/workflows/unicop.yml
@@ -0,0 +1,44 @@
+---
+name: Unicop - find evil unicode
+on:
+ pull_request:
+ paths:
+ - .github/workflows/unicop.yml
+ - '**/*.rs'
+ - '**/*.swift'
+ - '**/*.go'
+ - '**/*.py'
+ # Javascript/Typescript
+ - '**/*.ts'
+ - '**/*.js'
+ # Kotlin
+ - '**/*.kt'
+ - '**/*.kts'
+ # C/C++
+ - '**/*.cpp'
+ - '**/*.h'
+ workflow_dispatch:
+
+permissions: {}
+
+jobs:
+ unicop:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Checkout submodules
+ run: |
+ git config --global --add safe.directory '*'
+ git submodule update --init --depth=1 dist-assets/binaries
+ git submodule update --init --depth=1 windows
+ git submodule update --init --depth=1 wireguard-go-rs/libwg/wireguard-go
+
+ - name: Install Rust toolchain
+ run: rustup override set stable
+
+ - name: Install unicop
+ run: cargo install --locked unicop
+
+ - name: Check for unwanted unicode
+ run: unicop --verbose .
diff --git a/.github/workflows/verify-locked-down-signatures.yml b/.github/workflows/verify-locked-down-signatures.yml
index 9453cb789d..7a345c496e 100644
--- a/.github/workflows/verify-locked-down-signatures.yml
+++ b/.github/workflows/verify-locked-down-signatures.yml
@@ -4,6 +4,7 @@ on:
pull_request:
paths:
- .github/workflows/verify-locked-down-signatures.yml
+ - .github/workflows/unicop.yml
- .github/CODEOWNERS
- Cargo.toml
- test/Cargo.toml