Skip to content

Commit

Permalink
ci: remove mapi stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
muety committed Sep 21, 2023
1 parent 510b9fb commit c925a6d
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,52 +29,6 @@ jobs:
npm -g install newman
./testing/run_api_tests.sh
mapi:
name: 'Automated pen-tests with Mayhem for API'
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.20

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Get dependencies
run: go get

- name: Build
run: go build -v .

- name: start wakapi
run: ./wakapi --config config.default.yml &

- name: create a trivial testing user
run: sqlite3 wakapi_db.db "insert into users (id, api_key) values ('mapi', 'test-api-key')"

- name: Run Mayhem for API
uses: ForAllSecure/mapi-action@v1
continue-on-error: true
with:
mapi-token: ${{ secrets.MAPI_TOKEN }}
api-url: http://localhost:3000/api/
api-spec: static/docs/swagger.yaml
target: muety/wakapi
duration: 1min
sarif-report: mapi.sarif
run-args: |
--header-auth
Authorization: Basic dGVzdC1hcGkta2V5
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: mapi.sarif

migration:
name: Migration tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit c925a6d

Please sign in to comment.