From 9c5b4fffa39adf885863d0786a3469e975171bf7 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 8 Jan 2023 18:10:55 +0300 Subject: [PATCH] Update cloc.ps1 --- Scripts/cloc.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Scripts/cloc.ps1 b/Scripts/cloc.ps1 index f22e7a88..05615f9f 100644 --- a/Scripts/cloc.ps1 +++ b/Scripts/cloc.ps1 @@ -1,11 +1,9 @@ # Download cloc # https://github.com/AlDanial/cloc -$Token = ConvertTo-SecureString '${{ secrets.GITHUB_TOKEN }}' -AsPlainText $Parameters = @{ Uri = "https://api.github.com/repos/AlDanial/cloc/releases/latest" - Token = $Token - Authentication = "Bearer" + Authentication = "Bearer ${{ secrets.GITHUB_TOKEN }}" UseBasicParsing = $true Verbose = $true }