diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b15b435..6002498 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,12 +17,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: golang + - name: Setup Go uses: actions/setup-go@v2 with: - go-version: '1.20' + go-version: '1.21' - - name: checkout + - name: Checkout code uses: actions/checkout@v2 with: path: src/github.com/SSHcom/privx-sdk-go @@ -31,30 +31,28 @@ jobs: run: | go mod download -json - - name: go get CI tools + - name: Install CI tools run: | - go get github.com/mattn/goveralls - go get github.com/lawrencewoodman/roveralls - env: - GO111MODULE: off + go install github.com/mattn/goveralls@latest + go install github.com/lawrencewoodman/roveralls@latest - - name: go install staticcheck + - name: Install staticcheck run: | go install honnef.co/go/tools/cmd/staticcheck@latest - - name: go vet + - name: Run go vet run: | go vet ./... - - name: staticcheck + - name: Run staticcheck run: | staticcheck ./... - - name: go test + - name: Run go test run: | go test ./... - - name: coverage + - name: Run coverage env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | diff --git a/api/secretsmanager/model.go b/api/secretsmanager/model.go index 07cc5a5..78188af 100644 --- a/api/secretsmanager/model.go +++ b/api/secretsmanager/model.go @@ -51,9 +51,10 @@ type CompileScriptRequest struct { type TargetDomain struct { ID string `json:"id"` Name string `json:"name"` + DomainName string `json:"domain_name"` Enabled bool `json:"enabled"` PeriodicScan bool `json:"periodic_scan"` - PeriodicScanInterval int `json:"periodic_scan_interval,omitempty"` + PeriodicScanInterval int `json:"periodic_scan_interval"` ScanStatus string `json:"scan_status,omitempty"` ScanMessage string `json:"scan_message,omitempty"` LastScanned *time.Time `json:"last_scanned,omitempty"` @@ -152,6 +153,7 @@ type ManagedAccount struct { Username string `json:"username"` Email string `json:"email,omitempty"` FullName string `json:"full_name,omitempty"` + SamAccountName string `json:"sam_account_name,omitempty"` SourceID string `json:"source_id,omitempty"` SecurityID string `json:"security_id,omitempty"` AdditionalData map[string]string `json:"additional_data,omitempty"`