This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Feature: - (#142) RASP: add Shellshock protection support. This protection is currently attached to `os.StartProcess()` which is the common function of the Go standard library to execute a process. This protection can be configured at <https://my.sqreen.com/application/goto/modules/rasp/details/shellshock>. Fixes: - (#145) In-App WAF: always recover from panics as this in the way the `reflect` package handles usage errors. - (#144) Backend client: avoid dropping HTTP traces in case of `Host` header parsing errors.
- Loading branch information
Showing
15 changed files
with
318 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Agent Tests | ||
on: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
jobs: | ||
native: | ||
strategy: | ||
matrix: | ||
runs-on: [ macos-latest, ubuntu-latest, windows-latest ] | ||
go-version: [ 1, 1.15, 1.14, 1.13, 1.12 ] | ||
fail-fast: false | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- run: go test ./... | ||
|
||
# Same tests but on the official golang container for linux | ||
# Docker for Windows is not yet available on Github Actions. | ||
golang-linux-container: | ||
strategy: | ||
matrix: | ||
go-version: [ 1, 1.15, 1.14, 1.13, 1.12 ] | ||
distribution: [ alpine, buster ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golang:${{ matrix.go-version }}-${{ matrix.distribution }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Install gcc and the libc headers on alpine images | ||
- if: ${{ matrix.distribution == 'alpine' }} | ||
run: apk add gcc musl-dev libc6-compat git | ||
- run: go test ./... | ||
|
||
# debian stretch doesn't have the latest go versions | ||
golang-debian-stretch-container: | ||
strategy: | ||
matrix: | ||
go-version: [ 1.14, 1.13, 1.12 ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golang:${{ matrix.go-version }}-stretch | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: System Tests | ||
on: | ||
push: | ||
branches: [ 'master', 'dev', 'hotfix/*', 'release/*', 'feature/*', 'fix/*' ] | ||
jobs: | ||
# Run system tests when the PR is no longer a draft | ||
system-tests: | ||
if: github.event.pull_request.draft == false | ||
name: System Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run System Tests | ||
uses: felixp8/dispatch-and-wait@v0.1.0 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
owner: sqreen | ||
repo: AgentGoTests | ||
event_type: go-agent-commit | ||
client_payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' | ||
wait_time: 10 | ||
max_time: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.