feat(secure): support cold-start key exchange with empty pre-shared keys #73
This file contains hidden or 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
| name: ci | |
| on: | |
| push: | |
| branches: [dev] | |
| pull_request: | |
| branches: [dev] | |
| workflow_dispatch: | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.13" | |
| cache: true | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Go vet | |
| run: go vet ./... | |
| - name: Test inventory | |
| run: go run ./scripts/testinventory -output dist/testing | |
| - name: Go test | |
| run: go test ./... -count=1 -timeout 300s | |
| - name: Go build | |
| run: go build ./... | |
| env: | |
| CGO_ENABLED: 0 | |
| race: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.13" | |
| cache: true | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Race detection — core, parser, stream | |
| run: >- | |
| go test -race -count=1 -timeout 300s | |
| ./server/internal/core | |
| ./server/internal/parser/... | |
| ./server/internal/stream | |
| mock_implant: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.13" | |
| cache: true | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Mock implant E2E tests | |
| run: go test -tags=mockimplant ./server -count=1 -timeout 300s | |
| integration: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24.13" | |
| cache: true | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Client/Server integration tests | |
| run: go test -tags=integration ./server ./client/command/listener ./client/command/pipeline ./client/command/website ./client/command/sessions ./client/command/context -count=1 -timeout 300s |