Skip to content

Commit

Permalink
Update application and infrastructure workflows (#65)
Browse files Browse the repository at this point in the history
* Update application workflow
* Update infrastructure workflow
  • Loading branch information
ondfisk authored Nov 2, 2024
1 parent 87af0b6 commit 2a42648
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
rules:
braces:
forbid: true
forbid: non-empty
level: error
brackets:
forbid: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ name: Application
- tests/**
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
build:
Expand All @@ -30,6 +29,7 @@ jobs:
CONFIGURATION: Release

permissions:
contents: read
checks: write
id-token: write
pull-requests: write
Expand Down Expand Up @@ -65,8 +65,8 @@ jobs:
- name: Azure Login
uses: azure/login@v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Push Image to Azure Container Registry
Expand Down Expand Up @@ -114,8 +114,8 @@ jobs:
- name: Azure Login
uses: azure/login@v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Get Connection String
Expand Down Expand Up @@ -162,8 +162,8 @@ jobs:
- name: Azure Login
uses: azure/login@v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Get Connection String
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ name: Infrastructure
- infrastructure/**
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
environment: Staging

permissions:
contents: read
id-token: write

steps:
Expand All @@ -70,8 +72,8 @@ jobs:
- name: Azure Login
uses: azure/login@v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Create Resource Group
Expand Down Expand Up @@ -107,6 +109,7 @@ jobs:
environment: Production

permissions:
contents: read
id-token: write

steps:
Expand All @@ -119,8 +122,8 @@ jobs:
- name: Azure Login
uses: azure/login@v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Create Resource Group
Expand Down

0 comments on commit 2a42648

Please sign in to comment.