Skip to content

Commit

Permalink
Merge pull request #3020 from GSA-TTS/main
Browse files Browse the repository at this point in the history
2023-12-18 main -> prod
  • Loading branch information
danswick authored Dec 18, 2023
2 parents ff80a8e + 5004270 commit 3f29d98
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/add-bpmn-renders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ name: Lint BPMN
on:
workflow_call:

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
diagrams-up-to-date:
# Check that the PR is not raised by this workflow (avoiding recursion) and
# is not from a fork
if: startsWith(github.head_ref, 'auto/bpmn-patches') == false && github.event.pull_request.head.repo.full_name == github.repository
if: startsWith(github.event.pull_request.head.ref, 'auto/bpmn-patches') == false && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,7 +43,7 @@ jobs:
- name: Check For Changes
id: vars
run: |
branchname="bpmn-patches/${{ github.head_ref }}"
branchname="bpmn-patches/${{ env.BRANCH_NAME }}"
echo "branchname=${branchname}" >> $GITHUB_OUTPUT
imagesupdated=$(git status --porcelain | cut -d ' ' -f 2 | wc -l)
echo "imagesupdated=${imagesupdated}" >> $GITHUB_OUTPUT
Expand All @@ -49,12 +52,12 @@ jobs:
if: steps.vars.outputs.imagesupdated != 0
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update BPMN images for ${{ github.head_ref }}
title: Update BPMN images for ${{ github.head_ref }}
body: This is an auto-generated PR to sync BPMN images with their source on ${{ github.head_ref }}.
commit-message: Update BPMN images for ${{ env.BRANCH_NAME }}
title: Update BPMN images for ${{ env.BRANCH_NAME }}
body: This is an auto-generated PR to sync BPMN images with their source on ${{ env.BRANCH_NAME }}.
labels: bpmn-to-image, automated pr
branch: ${{ steps.vars.outputs.branchname }}
base: ${{ github.head_ref }}
base: ${{ env.BRANCH_NAME }}

- name: Update Changes
if: steps.vars.outputs.imagesupdated != 0
Expand All @@ -66,7 +69,7 @@ jobs:
A PR stops confusion...
I got ya partner.
(...merge PR #${{ env.PULL_REQUEST_NUMBER }}...)
(...merge PR #${{ github.event.pull_request.number }}...)
- name: Fail if images are not in sync with source
if: steps.vars.outputs.imagesupdated != 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fac-build-
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fac-build-
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
ignore-unfixed: true

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

Expand Down Expand Up @@ -87,6 +87,6 @@ jobs:
ignore-unfixed: true

- name: Upload Trivy scan results to GitHub Security tab for Third Party Images
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3>Check the box next to each item confirm your report meets the requirements.<
value="True"
{% if form.cleaned_data.is_auditee_responsible %}checked{% endif %} />
<label class="usa-checkbox__label" for="is_auditee_responsible">
The auditee completed the Federal Awards workbook using the audit reporting package as required by the Uniform Guidance.
The information in Part II of this Form SF-SAC is the responsibility of the auditee and is based on information included in the reporting package required by the Uniform Guidance.
</label>
<span class="usa-error-message">{{ form.errors.is_auditee_responsible|striptags }}</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion backend/dissemination/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def search_general(
if not order_by:
order_by = ORDER_BY.fac_accepted_date
if not order_direction:
order_direction = DIRECTION.ascending
order_direction = DIRECTION.descending

query = _initialize_query(include_private)

Expand Down
6 changes: 4 additions & 2 deletions backend/dissemination/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ <h4 class="usa-alert__heading">Sorting</h4>
<td>{{ result.audit_year }}</td>
<td>
{% if result.oversight_agency %}
Oversight
OVER-{{ result.oversight_agency }}
{% elif result.cognizant_agency %}
COG-{{ result.cognizant_agency }}
{% else %}
Cognizant
N/A
{% endif %}
</td>
<td>
Expand Down

0 comments on commit 3f29d98

Please sign in to comment.