Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss committed Jan 27, 2025
1 parent a377b12 commit decd14b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_sign_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
echo "KeyVaultCertificateName=$($KeyVaultInfo.KeyVault.CertificateName)" >> $env:GITHUB_OUTPUT
- name: Sign Module
run: |
# Source the function.
. repo/utils/workflow/Build-SignRelease.ps1
New-ModuleSignature `
-AzureKeyVaultUrl ${{ steps.key-vault-info.outputs.KeyVaultUrl }} `
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish_private_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
echo "KeyVaultCertificateName=$($KeyVaultInfo.KeyVault.CertificateName)" >> $env:GITHUB_OUTPUT
- name: Create Private Gallery
run: |
# Source the function.
. repo/utils/workflow/Publish-ScubaGear.ps1
cd repo
New-PrivateGallery -GalleryName $env:GalleryName -Trusted
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publish_public_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
path: repo
- name: Install Azure Signing Tool
run: |
# Source the function
. repo/utils/workflow/Install-AzureSignTool.ps1
Install-AzureSignTool
# OIDC Login to Azure Public Cloud with AzPowershell
Expand All @@ -67,7 +66,6 @@ jobs:
echo "KeyVaultCertificateName=$($KeyVaultInfo.KeyVault.CertificateName)" >> $env:GITHUB_OUTPUT
- name: Sign and Publish Module
run: |
# Source the function.
. repo/utils/workflow/Publish-ScubaGear.ps1
# Remove non-release files
Remove-Item -Recurse -Force repo -Include .git*
Expand Down
3 changes: 1 addition & 2 deletions Testing/workflow/Build-SignRelease.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
Describe "Bad Inputs Check" {
It "The root folder name should exist" {
$ScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '../../utils/workflow/Build-SignRelease.ps1' -Resolve
# Source the function
. $ScriptPath
# The function should throw an exception if the root folder name does not exist.
{ New-ModuleSignature `
-AzureKeyVaultUrl "https://www.cisa.gov" `
-AzureKeyVaultUrl "https://www.example.com" `
-CertificateName "certificate name" `
-ReleaseVersion "0.0.1" `
-RootFolderName "nonexistantfoldername" } | Should -Throw
Expand Down
1 change: 0 additions & 1 deletion Testing/workflow/Install-AzureSignTool.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

BeforeDiscovery {
$ScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '../../utils/workflow/Install-AzureSignTool.ps1' -Resolve
# Source the function
. $ScriptPath
Install-AzureSignTool
}
Expand Down

0 comments on commit decd14b

Please sign in to comment.