diff --git a/.github/workflows/CloseInactiveIssues.yml b/.github/workflows/CloseInactiveIssues.yml index a529a5c..593db14 100644 --- a/.github/workflows/CloseInactiveIssues.yml +++ b/.github/workflows/CloseInactiveIssues.yml @@ -3,6 +3,8 @@ on: schedule: - cron: "30 1 * * *" +permissions: read-all + jobs: close-issues: runs-on: ubuntu-latest diff --git a/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 b/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 index fb481e7..69f0c53 100644 --- a/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 +++ b/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 @@ -3,7 +3,7 @@ Function Get-NotifLocale { #Get OS locale - $OSLocale = (Get-Culture).Parent + $OSLocale = (Get-UICulture).Parent #Test if OS locale notif file exists $TestOSLocalPath = "$WorkingDir\locale\$($OSLocale.Name).xml"