Skip to content

Commit f38f25d

Browse files
Unicorn approvals (#214)
* feat: add command to list the parameters in parameters store * refactor: renamed UnicornPropertiesNamespace to UnicornApprovalsNamespace in shared namespace definition * refactor: updated resolve:ssm references for UnicornPropertiesNamespace to UnicornApprovalsNamespace across multiple templates * refactor: renamed unicorn_properties with unicorn_approvals * refactor: update references from unicorn_properties to unicorn_approvals in configuration and code files * feat: implement contract status management functions in approvals_service, including event handler, approval sync, and status checker * chore: update Approvals readme * chore: updated contracts readme * chore: update web readme * chore: updated main readme * chore: update GitHub Actions workflows to use actions/checkout@v4 and actions/github-script@v7 * chore: fix formatting in README.md by adjusting image placement * chore: upgrade CodeQL action versions to v3 in GitHub workflows * chore: update architecture diagram * refactor: update event source and rule names to use 'unicorn.approvals' * refactor: renames ApprovalService to PublicationManagerService for handling publication approval requests and events * chore: update Makefiles to reference samconfig.toml instead of samconfig.yaml for stack name * fix: added missing schema back in * chore: minor update to readme file * fix: updating stack outputs for tests to new approvals service * bug: typos in README.md * fix: corrects Makefiles * fix: updates test events to use Approvals eventbus name * chore: updated approvals readme * chore: updated readme and spelling mistakes * fix: syncing templates * fix: fixes environment variable name for DynamoDB Table --------- Co-authored-by: adrianjhunter <4285633+adrianjhunter@users.noreply.github.com>
1 parent 689b13e commit f38f25d

File tree

82 files changed

+223
-244
lines changed

Some content is hidden

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

82 files changed

+223
-244
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ updates:
88
- package-ecosystem: "npm" # See documentation for possible values
99
directories:
1010
- "unicorn_contracts" # Location of package manifests
11-
- "unicorn_properties"
11+
- "unicorn_approvals"
1212
- "unicorn_web"
1313
schedule:
1414
interval: "monthly"

.github/workflows/auto_assign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ jobs:
77
add-reviews:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: kentaro-m/auto-assign-action@v1.2.5
10+
- uses: kentaro-m/auto-assign-action@v2.0.0

.github/workflows/build_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '.github/workflows/*'
77
- 'unicorn_shared/**'
88
- 'unicorn_contracts/**'
9-
- 'unicorn_properties/**'
9+
- 'unicorn_approvals/**'
1010
- 'unicorn_web/**'
1111
env:
1212
AWS_REGION : "ap-southeast-2"
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
#max-parallel: 1
4545
matrix:
46-
folder: [unicorn_contracts, unicorn_web, unicorn_properties]
46+
folder: [unicorn_contracts, unicorn_web, unicorn_approvals]
4747

4848
steps:
4949
- uses: actions/checkout@v4

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@2ca79b6fa8d3ec278944088b4aa5f46912db5d63 #v2
32+
uses: github/codeql-action/init@v3
3333
with:
3434
languages: ${{ matrix.language }}
3535

3636
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3737
# If this step fails, then you should remove it and run the build manually (see below)
3838
# - name: Autobuild
39-
# uses: github/codeql-action/autobuild@2ca79b6fa8d3ec278944088b4aa5f46912db5d63 #v2
39+
# uses: github/codeql-action/autobuild@v3
4040

4141
# ℹ️ Command-line programs to run using the OS shell.
4242
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -49,4 +49,4 @@ jobs:
4949
# ./location_of_script_within_repo/buildscript.sh
5050

5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@2ca79b6fa8d3ec278944088b4aa5f46912db5d63 #v2
52+
uses: github/codeql-action/analyze@v3

.github/workflows/label_pr_on_title.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: "Label PR based on title"
27-
uses: actions/github-script@v6
27+
uses: actions/github-script@v7
2828
env:
2929
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
3030
PR_TITLE: ${{ needs.get_pr_details.outputs.prTitle }}

.github/workflows/on_label_added.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
issues: write
2424
pull-requests: write
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
# Maintenance: Persist state per PR as an artifact to avoid spam on label add
2828
- name: "Suggest split large Pull Request"
29-
uses: actions/github-script@v6
29+
uses: actions/github-script@v7
3030
env:
3131
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
3232
PR_ACTION: ${{ needs.get_pr_details.outputs.prAction }}

.github/workflows/on_merged_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
runs-on: ubuntu-latest
2121
if: needs.get_pr_details.outputs.prIsMerged == 'true'
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: "Label PR related issue for release"
25-
uses: actions/github-script@v6
25+
uses: actions/github-script@v7
2626
env:
2727
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
2828
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}

.github/workflows/on_opened_pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
needs: get_pr_details
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: "Ensure related issue is present"
24-
uses: actions/github-script@v6
24+
uses: actions/github-script@v7
2525
env:
2626
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
2727
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
@@ -36,9 +36,9 @@ jobs:
3636
needs: get_pr_details
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
4040
- name: "Ensure acknowledgement section is present"
41-
uses: actions/github-script@v6
41+
uses: actions/github-script@v7
4242
env:
4343
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
4444
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}

.github/workflows/record_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- name: "Extract PR details"
14-
uses: actions/github-script@v6
14+
uses: actions/github-script@v7
1515
with:
1616
script: |
1717
const script = require('.github/scripts/save_pr_details.js')

.github/workflows/reusable_export_pr_details.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
prIsMerged: ${{ steps.prIsMerged.outputs.prIsMerged }}
5454
steps:
5555
- name: Checkout repository # in case caller workflow doesn't checkout thus failing with file not found
56-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5757
- name: "Download previously saved PR"
58-
uses: actions/github-script@v6
58+
uses: actions/github-script@v7
5959
env:
6060
WORKFLOW_ID: ${{ inputs.record_pr_workflow_id }}
6161
# For security, we only download artifacts tied to the successful PR recording workflow

0 commit comments

Comments
 (0)