Skip to content

Commit

Permalink
Merge branch 'main' into feat/gunicorn-total-time-query
Browse files Browse the repository at this point in the history
  • Loading branch information
sastels authored Feb 19, 2025
2 parents 1243fa4 + 8c45cb5 commit 4a985fc
Show file tree
Hide file tree
Showing 122 changed files with 5,191 additions and 626 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3.11-buster@sha256:2578fb2474b1245a91115030c6b2224aa61c1229426c299793ef321a666d839f
FROM mcr.microsoft.com/vscode/devcontainers/python:3.12-bookworm

ARG USERNAME=vscode

Expand Down
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"fill-labs.dependi",
"hashicorp.terraform",
"hashicorp.hcl",
"redhat.vscode-yaml",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ai-code-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: AI Code Review
uses: cds-snc/cds-ai-codereviewer@main
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/calculate-s3-buckets-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Calculate S3 Buckets Size

on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
calculate_size:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Configure credentials to Notify using OIDC
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: arn:aws:iam::${{secrets.PRODUCTION_AWS_ACCOUNT_ID}}:role/notification-terraform-apply
role-session-name: NotifyApiGitHubActions
aws-region: "ca-central-1"

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Install dependencies
run: poetry install
working-directory: scripts/s3bucketsize

- name: Run S3 bucket size script
env:
BUCKET_NAMES: notification-canada-ca-production-document-download,notification-canada-ca-production-document-download-scan-files
OUTPUT_BUCKET: notification-canada-ca-production-document-download-logs
AWS_DEFAULT_REGION: 'ca-central-1'
run: poetry run s3bucketsize
working-directory: scripts/s3bucketsize
4 changes: 2 additions & 2 deletions .github/workflows/check_rds_cluster_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Configure AWS credentials using OIDC
uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0
with:
role-to-assume: arn:aws:iam::${{ secrets.STAGING_ACCOUNT_ID }}:role/notification-terraform-apply
role-to-assume: arn:aws:iam::${{ secrets.STAGING_AWS_ACCOUNT_ID }}:role/notification-terraform-apply
role-session-name: RDSClusterUpdateCheck
aws-region: ${{ env.AWS_DEFAULT_REGION }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/export_github_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
DNS_PROXY_FORWARDTOSENTINEL: "true"
DNS_PROXY_LOGANALYTICSWORKSPACEID: ${{ secrets.LOG_ANALYTICS_WORKSPACE_ID }}
DNS_PROXY_LOGANALYTICSSHAREDKEY: ${{ secrets.LOG_ANALYTICS_WORKSPACE_KEY }}
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Export Data
uses: cds-snc/github-repository-metadata-exporter@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/infrastructure_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.17.11
2.18.4
48 changes: 24 additions & 24 deletions .github/workflows/merge_to_main_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defaults:
shell: bash

env:
ACCOUNT_ID: ${{ secrets.PRODUCTION_ACCOUNT_ID }}
ACCOUNT_ID: ${{ secrets.PRODUCTION_AWS_ACCOUNT_ID }}
AWS_REGION: ca-central-1
ENVIRONMENT: production
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PRODUCTION }}
Expand All @@ -32,7 +32,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- uses: ./.github/actions/setup-terraform
with:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Configure credentials to Notify Private ECR using OIDC
uses: aws-actions/configure-aws-credentials@master
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Configure credentials to Notify Private ECR using OIDC
uses: aws-actions/configure-aws-credentials@master
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -362,7 +362,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -424,7 +424,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -455,7 +455,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -486,7 +486,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -517,7 +517,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -548,7 +548,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -579,7 +579,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -610,7 +610,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -641,7 +641,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -672,7 +672,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand Down Expand Up @@ -703,7 +703,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: setup-terraform
uses: ./.github/actions/setup-terraform
Expand All @@ -721,5 +721,5 @@ jobs:
- name: terragrunt apply github
run: |
cd env/${{env.ENVIRONMENT}}/manifest_secrets
cd env/${{env.ENVIRONMENT}}/github
terragrunt apply --terragrunt-non-interactive -auto-approve
Loading

0 comments on commit 4a985fc

Please sign in to comment.