Skip to content

Commit

Permalink
condition devSkim,pssa & minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianHayward committed May 16, 2024
1 parent ac951cc commit eddcfcb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
# - cron: '28 13 * * 2'

jobs:
if: github.repository == 'JulianHayward/Azure-MG-Sub-Governance-Reporting'
lint:
name: DevSkim
runs-on: ubuntu-20.04
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/psScriptAnalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ permissions:
contents: read

jobs:
if: github.repository == 'JulianHayward/Azure-MG-Sub-Governance-Reporting'
build:
permissions:
contents: read # for actions/checkout to fetch code
Expand Down
3 changes: 2 additions & 1 deletion pwsh/AzGovVizParallel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Param
# AzAPICall related parameters --->

[string]
$ARMLocation = 'westeurope',
$ARMLocation = 'northeurope',

[string]
$ScriptPath = 'pwsh', #e.g. 'myfolder\pwsh'
Expand Down Expand Up @@ -3807,6 +3807,7 @@ resources | where type =~ 'microsoft.network/publicIpAddresses'
resources
| where type =~ 'microsoft.compute/availabilitySets'
| where properties.virtualMachines == '[]'
| where not(name endswith "-asr")
| project type, subscriptionId, Resource=id, Intent='$intent'
"@
intent = $intent
Expand Down
2 changes: 1 addition & 1 deletion pwsh/dev/devAzGovVizParallel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Param
# AzAPICall related parameters --->

[string]
$ARMLocation = 'westeurope',
$ARMLocation = 'northeurope',

[string]
$ScriptPath = 'pwsh', #e.g. 'myfolder\pwsh'
Expand Down
1 change: 1 addition & 0 deletions pwsh/dev/functions/getOrphanedResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ resources | where type =~ 'microsoft.network/publicIpAddresses'
resources
| where type =~ 'microsoft.compute/availabilitySets'
| where properties.virtualMachines == '[]'
| where not(name endswith "-asr")
| project type, subscriptionId, Resource=id, Intent='$intent'
"@
intent = $intent
Expand Down

0 comments on commit eddcfcb

Please sign in to comment.