Skip to content

Commit

Permalink
[TPDMDEV-798] Improve Workflow Permission (#51)
Browse files Browse the repository at this point in the history
[TPDMDEV-798] Improve Workflow Permissions
  • Loading branch information
vimayya authored Jun 11, 2024
2 parents dda4331 + 8ec7a7c commit 06e291d
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-minimal-template-postgreSQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
required: false
description: "Ed-Fi-ODS-Implementation-ref: checks out the specified branch/tag of the Ed-Fi-ODS-Implementation repo. Default branch if not specified."

permissions: read-all

env:
tpdm_version: "1.2.0"
version_suite: "3"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-minimal-template-sqlServer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
required: false
description: "Ed-Fi-ODS-Implementation-ref: checks out the specified branch/tag of the Ed-Fi-ODS-Implementation repo. Default branch if not specified."

permissions: read-all

env:
tpdm_version: "1.2.0"
version_suite: "3"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-populated-template-postgreSQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
required: false
description: "Ed-Fi-ODS-Implementation-ref: checks out the specified branch/tag of the Ed-Fi-ODS-Implementation repo. Default branch if not specified."

permissions: read-all

env:
tpdm_version: "1.2.0"
version_suite: "3"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-populated-template-sqlServer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
required: false
description: "Ed-Fi-ODS-Implementation-ref: checks out the specified branch/tag of the Ed-Fi-ODS-Implementation repo. Default branch if not specified."

permissions: read-all

env:
tpdm_version: "1.2.0"
version_suite: "3"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-tpdm-minimal-template-postgreSQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy TPDM Minimal Template postgreSQL

on:
workflow_dispatch:

permissions: read-all

env:
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-tpdm-minimal-template-sqlServer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy TPDM Minimal Template SQLServer

on:
workflow_dispatch:

permissions: read-all

env:
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy TPDM Populated Template postgreSQL

on:
workflow_dispatch:

permissions: read-all

env:
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy TPDM Populated Template SQLServer

on:
workflow_dispatch:

permissions: read-all

env:
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_packaging/EdFi/nuget/v3/index.json
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ on:
required: false
description: "Ed-Fi-ODS-Implementation-ref: checks out the specified branch/tag of the Ed-Fi-ODS-Implementation repo. Default branch if not specified."

permissions: read-all

env:
tpdm_version: "1.2.0"
data_standard: "5.1.0"
ods_ref: ""
ods_ref_implementation: ""

Expand Down Expand Up @@ -124,5 +127,5 @@ jobs:
- name: Create Database Template
run: |
Import-Module -Force -Scope Global ${{ github.workspace }}\Ed-Fi-ODS-Implementation\DatabaseTemplate\Modules\create-tpdm-template.psm1
Initialize-TPDMTemplate -samplePath "D:\a\Ed-Fi-TPDM-Community-Artifacts\Ed-Fi-TPDM-Community-Artifacts\Ed-Fi-TPDM-Extension\" -ExtensionVersion "${{ env.tpdm_version }}"
Initialize-TPDMTemplate -samplePath "D:\a\Ed-Fi-TPDM-Community-Artifacts\Ed-Fi-TPDM-Community-Artifacts\Ed-Fi-TPDM-Extension\" -ExtensionVersion "${{ env.tpdm_version }}" -StandardVersion "${{ env.data_standard }}"
working-directory: ./Ed-Fi-TPDM-Extension

0 comments on commit 06e291d

Please sign in to comment.