diff --git a/.github/workflows/fix-dependabot.yml b/.github/workflows/fix-dependabot.yml new file mode 100644 index 000000000..2a885279f --- /dev/null +++ b/.github/workflows/fix-dependabot.yml @@ -0,0 +1,24 @@ +name: Fixes dependabot lint +on: + pull_request: + types: [opened] + branches: + - main +jobs: + change-and-push: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]'}} + steps: + - uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: v1.18.x + cache: true + - name: Format code + run: go run mage.go format + - name: Commit and push changes + uses: devops-infra/action-commit-push@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + commit_message: "chore: go mod tidy" diff --git a/README.md b/README.md index 8945c466a..c1e04a0ce 100644 --- a/README.md +++ b/README.md @@ -116,8 +116,8 @@ or as a library by importing: "github.com/corazawaf/coraza/v3/http/e2e" ``` -As a reference for library usage, see [`testing/e2e/e2e_test.go`](.testing/e2e/e2e_test.go). -Expected directives that have to be loaded and available flags can be found in [`http/e2e/main.go`](./examples/http/e2e/main.go). +As a reference for library usage, see [`testing/e2e/e2e_test.go`](./testing/e2e/e2e_test.go). +Expected directives that have to be loaded and available flags can be found in [`http/e2e/cmd/httpe2e/main.go`](./http/e2e/cmd/httpe2e/main.go). ## Tools