message: Use pull_request_target trigger to allow access to secrets on fork PR's
diff: name: "Build SNP CI Testing CCF Container"
  on:
  - pull_request:
  + pull_request_target:
  workflow_dispatch:
  env:
  @@ -14,12 +14,14 @@ jobs:
  runs-on: ubuntu-latest
  steps:
  - uses: actions/checkout@v3
  + with:
  + ref: ${{ github.event.pull_request.head.sha }}
  - name: Log in
  run: docker login -u $ACR_TOKEN_NAME -p ${{ secrets.ACR_CI_PUSH_TOKEN_PASSWORD }} $ACR_REGISTRY
  - name: Build CCF CI SNP container
  - run: docker build -f docker/ccf_ci . --build-arg="platform=snp" -t $ACR_REGISTRY/ccf/ci:pr-$GITHUB_SHA
  + run: docker build -f docker/ccf_ci . --build-arg="platform=snp" -t $ACR_REGISTRY/ccf/ci:pr-${{ github.event.pull_request.head.sha }}
  - name: Push CI container
  - run: docker push $ACR_REGISTRY/ccf/ci:pr-$GITHUB_SHA
  + run: docker push $ACR_REGISTRY/ccf/ci:pr-${{ github.event.pull_request.head.sha }}
  