Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ on:
required: false
type: string

permissions: {}

jobs:
deploys:
name: Helm
environment: ${{ inputs.environment }}
runs-on: ubuntu-24.04
permissions:
contents: read
timeout-minutes: ${{ inputs.timeout-minutes }}
steps:
- uses: actions/checkout@v6
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ on:
required: true
type: string

permissions: {}

jobs:
cypress-e2e:
name: Cypress E2E
runs-on: ubuntu-24.04
permissions:
contents: read
strategy:
matrix:
browser: [chrome]
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
# https://github.com/marketplace/actions/aqua-security-trivy
trivy:
name: Trivy Security Scan
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v6

Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

permissions: {}

jobs:
semantic-version:
outputs:
Expand All @@ -18,6 +20,8 @@ jobs:
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
runs-on: ubuntu-24.04
timeout-minutes: 1
permissions:
contents: write # write implies read; needed for git-push and checkout
steps:
- uses: actions/checkout@v6
- name: Conventional Changelog Update
Expand All @@ -34,6 +38,8 @@ jobs:
retag-images:
needs: [semantic-version]
runs-on: ubuntu-24.04
permissions:
packages: write
strategy:
matrix:
package: [api, database, frontend]
Expand All @@ -47,10 +53,11 @@ jobs:
tags: |
${{ needs.semantic-version.outputs.semanticVersion }}
${{ needs.semantic-version.outputs.tag }}

deploys:
name: TEST Deployments
needs: [retag-images, semantic-version]
permissions:
contents: read
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
Expand All @@ -62,13 +69,17 @@ jobs:
tests:
name: Tests
needs: [deploys]
permissions:
contents: read
uses: ./.github/workflows/.tests.yml
with:
target: test

deploys-prod:
name: PROD Deployments
needs: [semantic-version, tests]
permissions:
contents: read
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
Expand All @@ -81,6 +92,8 @@ jobs:
name: Create Release
needs: [semantic-version, deploys-prod]
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Create Release
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
cleanup:
name: Cleanup and Image Promotion
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
pr-greeting:
name: PR Greeting
Expand Down Expand Up @@ -39,6 +41,7 @@ jobs:
name: Builds
runs-on: ubuntu-24.04
permissions:
contents: read
attestations: write
id-token: write
packages: write
Expand All @@ -64,6 +67,8 @@ jobs:
deploys:
name: Deploys
needs: [builds]
permissions:
contents: read
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
Expand All @@ -90,6 +95,8 @@ jobs:
tests:
name: Tests
needs: [deploys]
permissions:
contents: read
uses: ./.github/workflows/.tests.yml
with:
target: ${{ github.event.number }}
9 changes: 9 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

permissions: {}

jobs:
pubcode-crawler:
name: Crawl Git Repos for bcgovpubcode.yml
runs-on: ubuntu-24.04
permissions:
contents: read
environment: prod
defaults:
run:
Expand Down Expand Up @@ -59,6 +63,9 @@ jobs:
validate-ministry-list:
name: Validate Ministry List in the pubcode schema.
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: schema/script
Expand Down Expand Up @@ -101,6 +108,8 @@ jobs:
soft-delete-removed-pubcodes:
name: Soft Delete pubcodes In the Databse which are removed from the repo.
runs-on: ubuntu-24.04
permissions:
contents: read
defaults:
run:
working-directory: utilities/remove-deleted-pubcode
Expand Down
Loading