diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 503448f3..374d7fac 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -3,8 +3,11 @@ name: Build container images on: # yamllint disable-line rule:truthy push: branches: [main] - pull_request_target: - types: [opened, syncronize, reopened, ready_for_review] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +env: + GO_VERSION: 1.22 jobs: build: @@ -21,7 +24,7 @@ jobs: steps: - name: Checkout Git Repository uses: actions/checkout@v4 - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -33,6 +36,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + cache: false + - name: Determine image tag id: tag run: |