Skip to content

Commit bc4b257

Browse files
committed
Revert "fix: pass HAB_AUTH_TOKEN via -z flag to hab pkg install"
This reverts commit 30179aa.
1 parent 4c85648 commit bc4b257

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

.github/workflows/grype-hab-package-scan.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,9 @@ jobs:
197197
198198
if [ -n "${{ inputs.hab_auth_token }}" ]; then
199199
export HAB_AUTH_TOKEN="${{ inputs.hab_auth_token }}"
200-
INSTALL_CMD="${INSTALL_CMD} -z ${HAB_AUTH_TOKEN}"
201200
echo "Using token from workflow input"
202201
elif [ -n "${{ secrets.HAB_AUTH_TOKEN }}" ]; then
203202
export HAB_AUTH_TOKEN="${{ secrets.HAB_AUTH_TOKEN }}"
204-
INSTALL_CMD="${INSTALL_CMD} -z ${HAB_AUTH_TOKEN}"
205203
echo "Using token from repository secret"
206204
fi
207205
@@ -403,11 +401,9 @@ jobs:
403401
404402
if (-not [string]::IsNullOrEmpty("${{ inputs.hab_auth_token }}")) {
405403
$env:HAB_AUTH_TOKEN = "${{ inputs.hab_auth_token }}"
406-
$InstallCmd = "${InstallCmd} -z ${{ inputs.hab_auth_token }}"
407404
Write-Host "Using token from workflow input"
408405
} elseif (-not [string]::IsNullOrEmpty("${{ secrets.HAB_AUTH_TOKEN }}")) {
409406
$env:HAB_AUTH_TOKEN = "${{ secrets.HAB_AUTH_TOKEN }}"
410-
$InstallCmd = "${InstallCmd} -z ${{ secrets.HAB_AUTH_TOKEN }}"
411407
Write-Host "Using token from repository secret"
412408
}
413409
@@ -595,11 +591,9 @@ jobs:
595591
596592
if [ -n "${{ inputs.hab_auth_token }}" ]; then
597593
export HAB_AUTH_TOKEN="${{ inputs.hab_auth_token }}"
598-
INSTALL_CMD="${INSTALL_CMD} -z ${HAB_AUTH_TOKEN}"
599594
echo "Using token from workflow input"
600595
elif [ -n "${{ secrets.HAB_AUTH_TOKEN }}" ]; then
601596
export HAB_AUTH_TOKEN="${{ secrets.HAB_AUTH_TOKEN }}"
602-
INSTALL_CMD="${INSTALL_CMD} -z ${HAB_AUTH_TOKEN}"
603597
echo "Using token from repository secret"
604598
fi
605599

0 commit comments

Comments
 (0)