From 631cd747fde217138c536232dd8d8c8cad730020 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 8 Jan 2023 18:29:49 +0300 Subject: [PATCH] Update cloc.ps1 --- Scripts/cloc.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Scripts/cloc.ps1 b/Scripts/cloc.ps1 index caab7387..d4e7ff07 100644 --- a/Scripts/cloc.ps1 +++ b/Scripts/cloc.ps1 @@ -1,9 +1,14 @@ # Download cloc # https://github.com/AlDanial/cloc +$Token = "${{ secrets.GITHUB_TOKEN }}" +$Headers = @{ + Accept = "application/json" + Authorization = "Bearer $Token" +} $Parameters = @{ Uri = "https://api.github.com/repos/AlDanial/cloc/releases/latest" - Authentication = "Bearer `${{ secrets.GITHUB_TOKEN }}" + Headers = $Headers UseBasicParsing = $true Verbose = $true }