Skip to content

Commit cf8c8fc

Browse files
authored
Merge branch 'main' into experiment/frontend-docker
2 parents 4cd0f9f + 91a6c30 commit cf8c8fc

File tree

176 files changed

+10377
-3698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+10377
-3698
lines changed

.github/ISSUE_TEMPLATE/platform-user-story.md

+10-14
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,30 @@ so that _[Outcome - what is the value add to the user]_."
2121

2222
### Description/Use Case
2323
<!--
24-
_Use this section to describe the 'Why', and/or provide an example scenario in which this feature/functionality would be valueable._
24+
Use this section to describe the 'Why', and/or provide an example scenario in which this feature/functionality would be valueable.
2525
-->
2626

2727
### Risks/Impacts/Considerations
2828
<!--
29-
_Use this section to briefly list out any risks/impacts that may come about, as a result of the proposed solution._
30-
- _System performance may be slowed_
31-
- _Only a single search parameter can be used_
29+
Use this section to briefly list out any risks/impacts that may come about, as a result of the proposed solution.
30+
- _[System performance may be slowed]_
31+
- _[Only a single search parameter can be used]_
3232
-->
3333

3434
### Dev Notes
3535
<!--
36-
_Use this section to describe any useful technical information to duplicate an issue or explain requirements related to this ticket without providing implementation details._
37-
- _Provided is the data that was used to replicate the issue..._
38-
- _To test, use SimpleReport upload CSV page to ..._
36+
Use this section to describe any useful technical information to duplicate an issue or explain requirements related to this ticket without providing implementation details.
37+
- _[Provided is the data that was used to replicate the issue...]_
38+
- _[To test, use SimpleReport upload CSV page to ...]_
3939
-->
4040

4141
### Acceptance Criteria
4242
<!--
4343
What is Acceptance Criteria?
4444
A set of conditions or business rules, as defined by the Product Owner, which the functionality or feature should satisfy, in order to be accepted by the Product Owner.
4545
46-
Use the following template when creating new Acceptance Criteria:
46+
Write the acceptance criteria as a list that can be checked off as work progresses. For example:
4747
48-
"Given _[describe the precondition]_, when I _[describe the action performed]_, then I expect _[describe the expected outcome]_."
49-
50-
_OR... it may be written as a bulleted list._
51-
52-
- _Time must be displayed as HH:MM:SS_
53-
- _Delivery rate must be shown as a percentage_
48+
- [ ] _[Time must be displayed as HH:MM:SS]_
49+
- [ ] _[Delivery rate must be shown as a percentage]_
5450
-->

.github/actions/azviz/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ inputs:
6767
```yml
6868
jobs:
6969
generate-viz:
70-
runs-on: ubuntu-latest
70+
runs-on: ubuntu-24.04
7171
steps:
7272
- name: Login to Azure
7373
uses: azure/login@v1

.github/actions/checksum-validate/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
jobs:
1515
generate-checksums:
1616
name: Generate checksum
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
1818
steps:
1919
- uses: actions/[email protected]
2020

@@ -34,7 +34,7 @@ jobs:
3434
name: Validate checksum
3535
needs:
3636
- generate-checksums
37-
runs-on: ubuntu-latest
37+
runs-on: ubuntu-24.04
3838
steps:
3939
- uses: actions/[email protected]
4040

.github/actions/connect-ovpn/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ example.
4141

4242
```yml
4343
connect-open-vpn:
44-
runs-on: ubuntu-latest
44+
runs-on: ubuntu-24.04
4545
steps:
4646
- uses: actions/checkout@v1
4747
- name: Install Open VPN

.github/actions/reliable-pull-request/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21-
os: [ubuntu-latest]
21+
os: [ubuntu-24.04]
2222
steps:
2323
- name: Checkout the repo
2424
uses: actions/[email protected]

.github/actions/remote-branch/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Josiah Siegel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Remote Branch Action
2+
3+
## Synopsis
4+
5+
1. Create a branch on a remote repository.
6+
2. [actions/checkout](https://github.com/actions/checkout) determins the active repo.
7+
8+
## Usage
9+
10+
### Single repo
11+
```yml
12+
jobs:
13+
create-branch-action:
14+
name: Create branch
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v4
19+
20+
- name: Create branch
21+
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
22+
with:
23+
branch: new-branch
24+
```
25+
### Single alternative repo
26+
```yml
27+
jobs:
28+
create-branch-action:
29+
name: Create branch
30+
runs-on: ubuntu-24.04
31+
steps:
32+
- name: Checkout repo
33+
uses: actions/checkout@v4
34+
35+
- name: Checkout alt repo
36+
uses: actions/checkout@v4
37+
with:
38+
sparse-checkout: .
39+
repository: me/alt-repo
40+
token: ${{ secrets.ALT_REPO_TOKEN }}
41+
path: alt-repo
42+
43+
- name: Create branch on alt repo
44+
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
45+
with:
46+
branch: new-branch-alt-repo
47+
path: alt-repo
48+
```
49+
### Multiple repos
50+
```yml
51+
jobs:
52+
create-branch-action:
53+
name: Create branch
54+
runs-on: ubuntu-24.04
55+
steps:
56+
- name: Checkout repo
57+
uses: actions/checkout@v4
58+
59+
- name: Checkout second repo
60+
uses: actions/checkout@v4
61+
with:
62+
sparse-checkout: .
63+
repository: me/second-repo
64+
token: ${{ secrets.SECONDARY_REPO_TOKEN }}
65+
path: second-repo
66+
67+
- name: Create branch
68+
id: create-branch-action
69+
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
70+
with:
71+
branch: new-branch
72+
73+
- name: Create branch on second repo
74+
id: create-branch-action-second-repo
75+
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
76+
with:
77+
branch: new-branch-second-repo
78+
path: second-repo
79+
80+
- name: Get create branch status
81+
run: echo ${{ steps.create-branch-action.outputs.create-status }}
82+
83+
- name: Get create branch status on second repo
84+
run: echo ${{ steps.create-branch-action-second-repo.outputs.create-status }}
85+
```
86+
87+
## Inputs
88+
89+
```yml
90+
inputs:
91+
branch:
92+
description: Branch name
93+
required: true
94+
path:
95+
description: Relative path under $GITHUB_WORKSPACE to place the repository
96+
required: false
97+
default: '.'
98+
```
99+
100+
## Outputs
101+
```yml
102+
outputs:
103+
create-status:
104+
description: Branch creation status
105+
value: ${{ steps.create-branch.outputs.create_status }}
106+
```
+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# action.yml
2+
name: Remote Branch Action
3+
description: Create and manage a remote branch
4+
branding:
5+
icon: 'git-branch'
6+
color: 'blue'
7+
inputs:
8+
branch:
9+
description: Branch name
10+
required: true
11+
path:
12+
description: Relative path under $GITHUB_WORKSPACE to place the repository
13+
required: false
14+
default: '.'
15+
outputs:
16+
create-status:
17+
description: Branch creation status
18+
value: ${{ steps.create-branch.outputs.create_status }}
19+
20+
runs:
21+
using: "composite"
22+
steps:
23+
24+
- name: Create branch
25+
id: create-branch
26+
working-directory: ${{ inputs.path }}
27+
shell: bash
28+
run: |
29+
# Assign the arguments to variables
30+
branch_name=${{ inputs.branch }}
31+
32+
# Create a new branch locally
33+
git checkout -b $branch_name
34+
35+
# Check if the branch exists on the remote
36+
check_status=$(git ls-remote --heads origin $branch_name | wc -l)
37+
38+
# Check if the branch does not exist on the remote
39+
if [ $check_status -eq 0 ]; then
40+
# Push the new branch to the remote repository using the token
41+
git push -u origin $branch_name
42+
43+
# Store the status of the push command
44+
status=$?
45+
46+
# Check if the push was successful
47+
if [ $status -eq 0 ]; then
48+
# Print a success message
49+
echo "Branch $branch_name created and pushed"
50+
else
51+
# Print an error message
52+
echo "Branch creation failed with status $status"
53+
status="Branch creation failed with status $status"
54+
fi
55+
else
56+
# Print a message that the branch already exists on the remote
57+
echo "Branch $branch_name already exists"
58+
status="Branch $branch_name already exists"
59+
fi
60+
61+
echo "create_status=$status" >> $GITHUB_OUTPUT

.github/actions/runleaks/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git
2+
_git
3+
.github
4+
_github

.github/actions/runleaks/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM cgr.dev/chainguard/wolfi-base:latest
2+
RUN apk add git gh make parallel jq
3+
4+
COPY git-secrets /git-secrets
5+
RUN make -C /git-secrets install
6+
COPY lib/* /
7+
8+
ENTRYPOINT ["bash", "/scan.sh"]

.github/actions/runleaks/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Josiah Siegel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)