Skip to content

Commit

Permalink
Merge pull request #2 from sophos/feature/NCL-1834--upgrade-openvpn-f…
Browse files Browse the repository at this point in the history
…or-Sophos-Connect-Client-to-2.6.10

NCL-1834 : Address CVEs which affect - OpenVPN: 2.0 - 2.6.9
  • Loading branch information
SeemaKodikanyana authored Jun 12, 2024
2 parents b1f8a8d + 30bb1aa commit 2eb81bf
Show file tree
Hide file tree
Showing 386 changed files with 8,958 additions and 7,103 deletions.
278 changes: 93 additions & 185 deletions .github/workflows/build.yaml

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: coverity-scan
on:
schedule:
- cron: '0 20 * * *' # Daily at 20:00 UTC
workflow_dispatch:

jobs:
latest:
runs-on: ubuntu-latest
steps:
- name: Check submission cache
id: check_submit
uses: actions/cache/restore@v4
with:
path: |
cov-int
key: check-submit-${{ github.sha }}

- name: Install dependencies
if: steps.check_submit.outputs.cache-hit != 'true'
run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-dev liblz4-dev libcap-ng-dev libnl-genl-3-dev linux-libc-dev man2html libcmocka-dev python3-docutils libtool automake autoconf libssl-dev libpkcs11-helper1-dev softhsm2 gnutls-bin

- name: Checkout OpenVPN
if: steps.check_submit.outputs.cache-hit != 'true'
uses: actions/checkout@v4

- name: Download Coverity Build Tool
if: steps.check_submit.outputs.cache-hit != 'true'
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=OpenVPN%2Fopenvpn" -O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}

- name: autoconf
if: steps.check_submit.outputs.cache-hit != 'true'
run: autoreconf -fvi
- name: configure
if: steps.check_submit.outputs.cache-hit != 'true'
run: ./configure --enable-pkcs11

- name: Build with cov-build
if: steps.check_submit.outputs.cache-hit != 'true'
run: |
PATH=`pwd`/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make
- name: Submit the result to Coverity Scan
if: steps.check_submit.outputs.cache-hit != 'true'
run: |
tar czvf openvpn.tgz cov-int
curl --form token=$TOKEN \
--form email=$EMAIL \
--form file=@openvpn.tgz \
--form version="$GITHUB_SHA" \
--form description="master" \
https://scan.coverity.com/builds?project=OpenVPN%2Fopenvpn
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}

- name: Cache submission
if: steps.check_submit.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
cov-int
key: ${{ steps.check_submit.outputs.cache-primary-key }}
16 changes: 1 addition & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
*.idb
*.suo
*.ncb
*.vcproj.*
*.vcxproj.user
*.sln.cache
*.log
Release
Debug
Win32-Output
out
.vs
.deps
.libs
Expand Down Expand Up @@ -44,12 +39,8 @@ m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
vcpkg_installed

version.sh
msvc-env-local.bat
config-msvc-local.h
config-msvc-version.h
doc/openvpn-examples.5
doc/openvpn-examples.5.html
doc/openvpn.8
Expand All @@ -61,17 +52,12 @@ distro/systemd/*.service
sample/sample-keys/sample-ca/
vendor/cmocka_build
vendor/dist
build/msvc/msvc-generate/version.m4

tests/t_client.sh
tests/t_client-*-20??????-??????/
t_client.rc
t_client_ips.rc
tests/unit_tests/**/*_testdriver
tests/unit_tests/engine-key/client.key
tests/unit_tests/engine-key/log.txt
tests/unit_tests/engine-key/openssl.cnf
tests/unit_tests/engine-key/passwd

src/openvpn/openvpn
include/openvpn-plugin.h
Expand Down
126 changes: 0 additions & 126 deletions .travis.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .travis/build-check.sh

This file was deleted.

Loading

0 comments on commit 2eb81bf

Please sign in to comment.