-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/go_modules/google.golang.org/prot…
…obuf-1.33.0
- Loading branch information
Showing
39 changed files
with
1,517 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This workflow generates database documentation and ERD files. | ||
# | ||
name: Generate dbdocs | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/dbdocs.yml | ||
- db/migrations | ||
|
||
jobs: | ||
generate-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Generate DB docs | ||
run: make dbdocs | ||
|
||
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4 | ||
with: | ||
add: dbdocs | ||
message: "Generate dbdocs" | ||
default_author: github_actions |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title = "DASG Standard" | ||
|
||
[extend] | ||
useDefault = true | ||
|
||
[[rules]] | ||
id = "mbi-detection" | ||
description = "Detects a potential MBI pattern based on https://www.cms.gov/medicare/new-medicare-card/understanding-the-mbi.pdf" | ||
regex = '''\b((?i)[1-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY\d]-?\d[ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY\d]\d-?[ACDEFGHJKMNPQRTUVWXY]{2}\d{2})\b''' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.16.1 | ||
rev: v8.19.2 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/tekwizely/pre-commit-golang | ||
rev: master | ||
rev: v1.0.0-rc.1 | ||
hooks: | ||
- id: go-imports | ||
args: ['-w'] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.19-alpine3.18 | ||
FROM golang:1.21.12-alpine3.20 | ||
|
||
ENV CGO_ENABLED=0 | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM golang:1.19-alpine3.18 | ||
FROM golang:1.21.12-alpine3.20 | ||
|
||
RUN apk update upgrade | ||
|
||
RUN apk add bash build-base curl | ||
|
||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin | ||
|
||
RUN GO111MODULE=on go install github.com/xo/usql@v0.11.0 | ||
RUN go install github.com/securego/gosec/v2/cmd/gosec@v2.12.0 | ||
RUN go install gotest.tools/gotestsum@v1.8.1 | ||
RUN GO111MODULE=on go install github.com/xo/usql@v0.17.5 | ||
RUN go install github.com/securego/gosec/v2/cmd/gosec@v2.20.0 | ||
RUN go install gotest.tools/gotestsum@v1.12.0 | ||
RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/[email protected] | ||
|
||
WORKDIR /go/src/github.com/CMSgov/bcda-ssas-app | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# bcda | ||
|
||
## Tables | ||
|
||
| Name | Columns | Comment | Type | | ||
| ---- | ------- | ------- | ---- | | ||
| [public.schema_migrations](public.schema_migrations.md) | 2 | | BASE TABLE | | ||
| [public.blacklist_entries](public.blacklist_entries.md) | 7 | | BASE TABLE | | ||
| [public.encryption_keys](public.encryption_keys.md) | 7 | | BASE TABLE | | ||
| [public.groups](public.groups.md) | 7 | | BASE TABLE | | ||
| [public.secrets](public.secrets.md) | 6 | | BASE TABLE | | ||
| [public.systems](public.systems.md) | 12 | | BASE TABLE | | ||
| [public.ips](public.ips.md) | 6 | | BASE TABLE | | ||
| [public.client_tokens](public.client_tokens.md) | 8 | | BASE TABLE | | ||
| [public.root_keys](public.root_keys.md) | 8 | | BASE TABLE | | ||
|
||
## Relations | ||
|
||
![er](schema.svg) | ||
|
||
--- | ||
|
||
> Generated by [tbls](https://github.com/k1LoW/tbls) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# public.blacklist_entries | ||
|
||
## Description | ||
|
||
## Columns | ||
|
||
| Name | Type | Default | Nullable | Children | Parents | Comment | | ||
| ---- | ---- | ------- | -------- | -------- | ------- | ------- | | ||
| id | integer | nextval('blacklist_entries_id_seq'::regclass) | false | | | | | ||
| created_at | timestamp with time zone | | true | | | | | ||
| updated_at | timestamp with time zone | | true | | | | | ||
| deleted_at | timestamp with time zone | | true | | | | | ||
| key | text | | false | | | | | ||
| entry_date | bigint | | false | | | | | ||
| cache_expiration | bigint | | false | | | | | ||
|
||
## Constraints | ||
|
||
| Name | Type | Definition | | ||
| ---- | ---- | ---------- | | ||
| blacklist_entries_pkey | PRIMARY KEY | PRIMARY KEY (id) | | ||
|
||
## Indexes | ||
|
||
| Name | Definition | | ||
| ---- | ---------- | | ||
| blacklist_entries_pkey | CREATE UNIQUE INDEX blacklist_entries_pkey ON public.blacklist_entries USING btree (id) | | ||
| idx_blacklist_entries_deleted_at | CREATE INDEX idx_blacklist_entries_deleted_at ON public.blacklist_entries USING btree (deleted_at) | | ||
|
||
## Relations | ||
|
||
![er](public.blacklist_entries.svg) | ||
|
||
--- | ||
|
||
> Generated by [tbls](https://github.com/k1LoW/tbls) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.