diff --git a/.github/workflows/run-tests-generate-output.yaml b/.github/workflows/run-tests-generate-output.yaml index 9e68a3ebb..7984a0325 100644 --- a/.github/workflows/run-tests-generate-output.yaml +++ b/.github/workflows/run-tests-generate-output.yaml @@ -35,7 +35,8 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: - ref: ${{ github.event.pull_request.head.sha }} + # use the commit that triggered this workflow to avoid any wildcard fetch + ref: ${{ github.sha }} repository: ${{ github.event.pull_request.head.repo.full_name }} persist-credentials: false # Set the pip environment up @@ -173,7 +174,8 @@ jobs: - name: Checkout repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: - ref: ${{ github.event.pull_request.head.ref }} + # use the run's SHA rather than branch to avoid wildcard refspec + ref: ${{ github.sha }} - name: Download translation check report uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: diff --git a/copi.owasp.org/lib/copi_web/live/player_live/index.html.heex b/copi.owasp.org/lib/copi_web/live/player_live/index.html.heex index 2c38d7ebd..922a25e4a 100644 --- a/copi.owasp.org/lib/copi_web/live/player_live/index.html.heex +++ b/copi.owasp.org/lib/copi_web/live/player_live/index.html.heex @@ -1,4 +1,5 @@ +<%= if @player do %> <.live_component module={CopiWeb.PlayerLive.FormComponent} id={:new} @@ -8,6 +9,7 @@ client_ip={@client_ip} patch={~p"/games/#{@game.id}"} /> +<% end %>