Skip to content

Commit

Permalink
fix: add missing fields to structs (#157)
Browse files Browse the repository at this point in the history
* fix: add missing fields to structs
* fix: github workflow
  • Loading branch information
iljaSL authored Aug 16, 2024
1 parent 4adabdf commit d2bbbc5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion api/secretsmanager/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit d2bbbc5

Please sign in to comment.