Skip to content

Commit

Permalink
appsec_stub.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Sep 10, 2024
1 parent 52a2c79 commit 8786bc6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,17 @@ jobs:
make build BUILD_STATIC=1
make go-acc | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter
# check if some component stubs are missing
- name: "Build profile: minimal"
run: |
make build BUILD_PROFILE=minimal
- name: Run tests again, dynamic
run: |
make clean build
set -o pipefail
make go-acc | sed 's/ *coverage:.*of statements in.*//' | richgo testfilter
- name: "Build profile: minimal"
run: |
make build BUILD_PROFILE=minimal
- name: Upload unit coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
11 changes: 11 additions & 0 deletions cmd/crowdsec/appsec_stub.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build no_datasource_appsec

package main

import (
"github.com/crowdsecurity/crowdsec/pkg/cwhub"
)

func LoadAppsecRules(hub *cwhub.Hub) error {
return nil
}

0 comments on commit 8786bc6

Please sign in to comment.