-
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/github.com/jackc/pgx/v…
…5-5.5.4
- Loading branch information
Showing
49 changed files
with
1,584 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Contribution expectations | ||
|
||
The following expectations apply to each PR: | ||
|
||
1. The PR and branch are named for [automatic linking](https://support.atlassian.com/jira-cloud-administration/docs/use-the-github-for-jira-app/) to the most relevant JIRA issue (for example, `JRA-123 Adds foo` for PR title and `jra-123-adds-foo` for branch name). | ||
2. Reviewers are selected to include people from all teams impacted by the changes in the PR. | ||
3. The PR has been assigned to the people who will respond to reviews and merge when ready (usually the person filing the review, but can change when a PR is handed off to someone else). | ||
4. The PR is reasonably limited in scope to ensure: | ||
- It doesn't bunch together disparate features, fixes, refactorings, etc. | ||
- There isn't too much of a burden on reviewers. | ||
- Any problems it causes have a small blast radius. | ||
- Changes will be easier to roll back if necessary. | ||
5. The PR includes any required documentation changes, including `README` updates and changelog or release notes entries. | ||
6. All new and modified code is appropriately commented to make the what and why of its design reasonably clear, even to those unfamiliar with the project. | ||
7. Any incomplete work introduced by the PR is detailed in `TODO` comments which include a JIRA ticket ID for any items that require urgent attention. |
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,24 +1,21 @@ | ||
## 🎫 Ticket | ||
|
||
https://jira.cms.gov/browse/BCDA-xxx | ||
https://jira.cms.gov/browse/... | ||
|
||
## 🛠 Changes | ||
|
||
(What was added, updated, or removed in this PR.) | ||
<!-- What was added, updated, or removed in this PR? --> | ||
|
||
## ℹ️ Context for reviewers | ||
## ℹ️ Context | ||
|
||
(Background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers.) | ||
<!-- Why were these changes made? Add background context suitable for a non-technical audience. --> | ||
|
||
## ✅ Acceptance Validation | ||
<!-- If any of the following security implications apply, this PR must not be merged without Stephen Walter's approval. Explain in this section and add @SJWalter11 as a reviewer. | ||
- Adds a new software dependency or dependencies. | ||
- Modifies or invalidates one or more of our security controls. | ||
- Stores or transmits data that was not stored or transmitted before. | ||
- Requires additional review of security implications for other reasons. --> | ||
|
||
(How were the changes verified? Did you fully test the acceptance criteria in the ticket? Provide reproducible testing instructions and screenshots if applicable.) | ||
## 🧪 Validation | ||
|
||
## 🔒 Security Implications | ||
|
||
- [ ] This PR adds a new software dependency or dependencies. | ||
- [ ] This PR modifies or invalidates one or more of our security controls. | ||
- [ ] This PR stores or transmits data that was not stored or transmitted before. | ||
- [ ] This PR requires additional review of its security implications for other reasons. | ||
|
||
If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval. | ||
<!-- How were the changes verified? Did you fully test the acceptance criteria in the ticket? Provide reproducible testing instructions and screenshots if applicable. --> |
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.15 | ||
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.15 | ||
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
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) |
Oops, something went wrong.