Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

Add permissions and update action versions in workflow files; introduce Dependabot configuration

AnoF-Cyberb0284efb2e4f
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..5990d9c
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,11 @@
+# To get started with Dependabot version updates, you'll need to specify which
+# package ecosystems to update and where the package manifests are located.
+# Please see the documentation for all configuration options:
+# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
+
+version: 2
+updates:
+ - package-ecosystem: "" # See documentation for possible values
+ directory: "/" # Location of package manifests
+ schedule:
+ interval: "weekly"
diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml
index 13820a8..1086979 100644
--- a/.github/workflows/build-linux.yml
+++ b/.github/workflows/build-linux.yml
@@ -1,5 +1,8 @@
name: Build Linux
+permissions:
+ contents: read
+
on:
push:
branches: [ master, dev ]
@@ -10,10 +13,13 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ actions: read
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Install build dependencies
run: |
@@ -83,7 +89,7 @@ jobs:
shell: bash
- name: Upload artifacts
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ProxyBridge-Linux-Build-${{ github.sha }}
path: Linux/output/
diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml
index e77849d..1005a1a 100644
--- a/.github/workflows/build-mac.yml
+++ b/.github/workflows/build-mac.yml
@@ -12,13 +12,16 @@ on:
jobs:
build:
runs-on: macos-latest
-
+ permissions:
+ contents: read
+ actions: read
+
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Xcode
- uses: maxim-lobanov/setup-xcode@v1
+ uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1
with:
xcode-version: latest-stable
@@ -203,7 +206,7 @@ jobs:
echo "PKG signed, notarized and stapled successfully"
- name: Upload PKG Artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ProxyBridge-macOS-Installer
path: MacOS/ProxyBridge/output/ProxyBridge-*.pkg
diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml
index 5f2dd84..7fc7cad 100644
--- a/.github/workflows/build-windows.yml
+++ b/.github/workflows/build-windows.yml
@@ -7,9 +7,15 @@ on:
branches: [ main, dev ]
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
build:
runs-on: windows-latest
+ permissions:
+ contents: read
+ actions: read
steps:
- name: Checkout code
diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml
index 8fe17c6..ef925f6 100644
--- a/.github/workflows/release-linux.yml
+++ b/.github/workflows/release-linux.yml
@@ -11,11 +11,14 @@ permissions:
jobs:
build-and-release:
runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ actions: read
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.actor == github.repository_owner)
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Install build dependencies
run: |
@@ -120,12 +123,14 @@ jobs:
- name: Upload archive to release
if: github.event_name == 'release'
- uses: softprops/action-gh-release@v1
- with:
- files: ProxyBridge-Linux-v*.tar.gz
+ run: |
+ gh release upload "${{ github.event.release.tag_name }}" ProxyBridge-Linux-v*.tar.gz --clobber
+ shell: bash
+ env:
+ GH_TOKEN: ${{ github.token }}
- name: Upload build artifacts
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ProxyBridge-Linux-Release-${{ steps.version.outputs.version }}
path: ProxyBridge-Linux-*.tar.gz
diff --git a/.github/workflows/release-mac.yml b/.github/workflows/release-mac.yml
index 24e77f5..97ae860 100644
--- a/.github/workflows/release-mac.yml
+++ b/.github/workflows/release-mac.yml
@@ -10,14 +10,17 @@ on:
jobs:
build-and-release:
runs-on: macos-latest
+ permissions:
+ contents: write
+ actions: read
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.actor == github.repository_owner)
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Xcode
- uses: maxim-lobanov/setup-xcode@v1
+ uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1
with:
xcode-version: latest-stable
@@ -202,12 +205,14 @@ jobs:
echo "PKG signed, notarized and stapled successfully"
- name: Upload PKG to Release
- uses: softprops/action-gh-release@v1
- with:
- files: MacOS/ProxyBridge/output/ProxyBridge-*.pkg
+ if: github.event_name == 'release'
+ run: |
+ gh release upload "${{ github.event.release.tag_name }}" MacOS/ProxyBridge/output/ProxyBridge-*.pkg --clobber
+ env:
+ GH_TOKEN: ${{ github.token }}
- name: Upload PKG Artifact
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ProxyBridge-macOS-Installer
path: MacOS/ProxyBridge/output/ProxyBridge-*.pkg
diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml
index bf5e703..501e527 100644
--- a/.github/workflows/release-windows.yml
+++ b/.github/workflows/release-windows.yml
@@ -11,11 +11,14 @@ permissions:
jobs:
build-and-release:
runs-on: self-hosted
+ permissions:
+ contents: write
+ actions: read
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.actor == github.repository_owner)
steps:
- name: Checkout code
- uses: actions/checkout@v4
+ uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Verify WinDivert installation
run: |
@@ -42,12 +45,15 @@ jobs:
shell: pwsh
- name: Upload installer to release
- uses: softprops/action-gh-release@v1
- with:
- files: Windows/output/ProxyBridge-Setup-*.exe
+ if: github.event_name == 'release'
+ run: |
+ gh release upload "${{ github.event.release.tag_name }}" (Get-ChildItem Windows/output/ProxyBridge-Setup-*.exe) --clobber
+ shell: pwsh
+ env:
+ GH_TOKEN: ${{ github.token }}
- name: Upload build artifacts
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: ProxyBridge-Release-${{ github.event.release.tag_name }}
path: Windows/output/