Skip to content

Commit

Permalink
separate login and install steps
Browse files Browse the repository at this point in the history
  • Loading branch information
xansec committed Aug 21, 2024
1 parent 1935bfb commit b071e3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ jobs:
run: |
echo "MAYHEM_URL: ${{ env.MAYHEM_URL }}"
$installerPath = "$env:TEMP\mayhem.msi"
Invoke-WebRequest -Uri "https://app.mayhem.security/cli/Windows/mayhem.msi" -OutFile $installerPath
curl -L "https://app.mayhem.security/cli/Windows/mayhem.msi" -o $installerPath
Start-Process msiexec.exe -ArgumentList "/i", $installerPath, "/quiet", "/norestart" -NoNewWindow -Wait
env:
MAYHEM_URL: ${{ env.MAYHEM_URL }}

- name: Log in to Mayhem
run: |
mayhem login --url ${{ env.MAYHEM_URL }} --token ${{ secrets.MAYHEM_TOKEN }}
env:
MAYHEM_URL: ${{ env.MAYHEM_URL }}
Expand Down

0 comments on commit b071e3c

Please sign in to comment.