Skip to content

Commit

Permalink
Merge branch 'main' into experience/16074-Create-Test-Result-Page-wit…
Browse files Browse the repository at this point in the history
…hout-Download-Results
  • Loading branch information
etanb authored Jan 23, 2025
2 parents 36918b1 + 4a2231a commit 40e6b94
Show file tree
Hide file tree
Showing 153 changed files with 10,160 additions and 4,158 deletions.
24 changes: 10 additions & 14 deletions .github/ISSUE_TEMPLATE/platform-user-story.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,30 @@ so that _[Outcome - what is the value add to the user]_."

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

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

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

### Acceptance Criteria
<!--
What is Acceptance Criteria?
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.
Use the following template when creating new Acceptance Criteria:
Write the acceptance criteria as a list that can be checked off as work progresses. For example:
"Given _[describe the precondition]_, when I _[describe the action performed]_, then I expect _[describe the expected outcome]_."
_OR... it may be written as a bulleted list._
- _Time must be displayed as HH:MM:SS_
- _Delivery rate must be shown as a percentage_
- [ ] _[Time must be displayed as HH:MM:SS]_
- [ ] _[Delivery rate must be shown as a percentage]_
-->
2 changes: 1 addition & 1 deletion .github/actions/azviz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ inputs:
```yml
jobs:
generate-viz:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Login to Azure
uses: azure/login@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/checksum-validate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
jobs:
generate-checksums:
name: Generate checksum
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]

Expand All @@ -34,7 +34,7 @@ jobs:
name: Validate checksum
needs:
- generate-checksums
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/connect-ovpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ example.

```yml
connect-open-vpn:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v1
- name: Install Open VPN
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/reliable-pull-request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
steps:
- name: Checkout the repo
uses: actions/[email protected]
Expand Down
21 changes: 21 additions & 0 deletions .github/actions/remote-branch/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Josiah Siegel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
106 changes: 106 additions & 0 deletions .github/actions/remote-branch/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Remote Branch Action

## Synopsis

1. Create a branch on a remote repository.
2. [actions/checkout](https://github.com/actions/checkout) determins the active repo.

## Usage

### Single repo
```yml
jobs:
create-branch-action:
name: Create branch
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Create branch
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
with:
branch: new-branch
```
### Single alternative repo
```yml
jobs:
create-branch-action:
name: Create branch
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Checkout alt repo
uses: actions/checkout@v4
with:
sparse-checkout: .
repository: me/alt-repo
token: ${{ secrets.ALT_REPO_TOKEN }}
path: alt-repo

- name: Create branch on alt repo
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
with:
branch: new-branch-alt-repo
path: alt-repo
```
### Multiple repos
```yml
jobs:
create-branch-action:
name: Create branch
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Checkout second repo
uses: actions/checkout@v4
with:
sparse-checkout: .
repository: me/second-repo
token: ${{ secrets.SECONDARY_REPO_TOKEN }}
path: second-repo

- name: Create branch
id: create-branch-action
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
with:
branch: new-branch

- name: Create branch on second repo
id: create-branch-action-second-repo
uses: CDCgov/prime-reportstream/.github/actions/[email protected]
with:
branch: new-branch-second-repo
path: second-repo

- name: Get create branch status
run: echo ${{ steps.create-branch-action.outputs.create-status }}

- name: Get create branch status on second repo
run: echo ${{ steps.create-branch-action-second-repo.outputs.create-status }}
```
## Inputs
```yml
inputs:
branch:
description: Branch name
required: true
path:
description: Relative path under $GITHUB_WORKSPACE to place the repository
required: false
default: '.'
```
## Outputs
```yml
outputs:
create-status:
description: Branch creation status
value: ${{ steps.create-branch.outputs.create_status }}
```
61 changes: 61 additions & 0 deletions .github/actions/remote-branch/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# action.yml
name: Remote Branch Action
description: Create and manage a remote branch
branding:
icon: 'git-branch'
color: 'blue'
inputs:
branch:
description: Branch name
required: true
path:
description: Relative path under $GITHUB_WORKSPACE to place the repository
required: false
default: '.'
outputs:
create-status:
description: Branch creation status
value: ${{ steps.create-branch.outputs.create_status }}

runs:
using: "composite"
steps:

- name: Create branch
id: create-branch
working-directory: ${{ inputs.path }}
shell: bash
run: |
# Assign the arguments to variables
branch_name=${{ inputs.branch }}
# Create a new branch locally
git checkout -b $branch_name
# Check if the branch exists on the remote
check_status=$(git ls-remote --heads origin $branch_name | wc -l)
# Check if the branch does not exist on the remote
if [ $check_status -eq 0 ]; then
# Push the new branch to the remote repository using the token
git push -u origin $branch_name
# Store the status of the push command
status=$?
# Check if the push was successful
if [ $status -eq 0 ]; then
# Print a success message
echo "Branch $branch_name created and pushed"
else
# Print an error message
echo "Branch creation failed with status $status"
status="Branch creation failed with status $status"
fi
else
# Print a message that the branch already exists on the remote
echo "Branch $branch_name already exists"
status="Branch $branch_name already exists"
fi
echo "create_status=$status" >> $GITHUB_OUTPUT
4 changes: 4 additions & 0 deletions .github/actions/runleaks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
_git
.github
_github
8 changes: 8 additions & 0 deletions .github/actions/runleaks/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM cgr.dev/chainguard/wolfi-base:latest
RUN apk add git gh make parallel jq

COPY git-secrets /git-secrets
RUN make -C /git-secrets install
COPY lib/* /

ENTRYPOINT ["bash", "/scan.sh"]
21 changes: 21 additions & 0 deletions .github/actions/runleaks/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Josiah Siegel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 40e6b94

Please sign in to comment.