Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/qcom-container-build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,24 @@ jobs:
runs-on: ubuntu-24.04-arm
steps:

- name: Checkout Repository
# PRs from forks (pull_request_target): check out the PR's fork + exact commit
- name: Checkout PR head (fork-safe)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v4
with:
ref: ${{github.head_ref}}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

# Push / schedule / manual: normal checkout
- name: Checkout repository
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v4

- name: Build Images
uses: ./.github/actions/build_container
with:
arch: arm64
push-to-ghcr: ${{ github.event_name != 'pull_request_target' }}
token: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}
username: ${{ vars.DEB_PKG_BOT_CI_USERNAME }}
username: ${{ vars.DEB_PKG_BOT_CI_USERNAME }}
Loading