Skip to content
Merged
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions .github/workflows/bot--automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
name: 'auto-merge'

on:
# pull_request_target is needed to read GH_PAT_AUTOMERGE on dependabot pull requests.
# It is safe here: the jobs never check out or run code from the pull request.
pull_request_target: # zizmor: ignore[dangerous-triggers]
# GH_PAT_AUTOMERGE must be in both the Actions secrets (human pull requests)
# and the Dependabot secrets (Dependabot pull requests).
# Pull requests from forks get no secrets, so the jobs skip them.
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

# All API calls use GH_PAT_AUTOMERGE, the GITHUB_TOKEN is not used
Expand All @@ -17,7 +18,7 @@ jobs:
enable-auto-merge:
runs-on: ubuntu-latest
continue-on-error: true
if: github.event.pull_request.draft == false
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Enable pull request auto-merge
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/bot--labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: 'labeler'

on:
- pull_request_target
- pull_request

permissions: read-all

Expand All @@ -12,6 +12,8 @@ jobs:
permissions:
pull-requests: write
runs-on: ubuntu-latest
# Pull requests from forks get a read-only token and cannot write labels
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Run labeler
uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
55 changes: 14 additions & 41 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,9 @@ jobs:
matrix:
coreboot-version: ['24.02.01']
arch: ['amd64', 'arm64']
runs-on: ${{ matrix.arch == 'arm64' && 'ARM64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -165,6 +161,7 @@ jobs:
target: 'coreboot-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand All @@ -185,13 +182,9 @@ jobs:
matrix:
linux-version: ['6.12']
arch: ['amd64', 'arm64']
runs-on: ${{ matrix.arch == 'arm64' && 'ARM64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -237,6 +230,7 @@ jobs:
target: 'linux-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand All @@ -261,10 +255,6 @@ jobs:
# TODO
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -315,6 +305,7 @@ jobs:
target: 'edk2-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand All @@ -335,13 +326,9 @@ jobs:
matrix:
coreboot-version: ['4.19']
arch: ['amd64', 'arm64']
runs-on: ${{ matrix.arch == 'arm64' && 'ARM64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -372,6 +359,7 @@ jobs:
target: 'stitching-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand All @@ -391,13 +379,9 @@ jobs:
matrix:
uroot-version: ['0.15.0']
arch: ['amd64', 'arm64']
runs-on: ${{ matrix.arch == 'arm64' && 'ARM64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -428,6 +412,7 @@ jobs:
target: 'u-root-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand All @@ -447,13 +432,9 @@ jobs:
matrix:
uboot-version: ['2025.01']
arch: ['amd64', 'arm64']
runs-on: ${{ matrix.arch == 'arm64' && 'ARM64' || 'ubuntu-latest' }}
runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down Expand Up @@ -491,6 +472,7 @@ jobs:
target: 'u-boot-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand All @@ -508,10 +490,6 @@ jobs:
runs-on: ubuntu-latest
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -525,6 +503,7 @@ jobs:
target: 'universal-example'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'

- name: Get artifacts
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand All @@ -547,10 +526,6 @@ jobs:
prune: ['true', 'false']
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -565,6 +540,7 @@ jobs:
recursive: 'true'
prune: ${{ matrix.prune }}
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'

- name: Get artifacts
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand All @@ -581,10 +557,6 @@ jobs:
runs-on: ubuntu-latest
if: ${{ needs.skip-check.outputs.changes == 'true' }}
steps:
- name: Cleanup
run: |
rm -rf ./* || true
rm -rf ./.??* || true
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -598,6 +570,7 @@ jobs:
target: 'universal-example-nested-output'
recursive: 'false'
compile: ${{ needs.changes.outputs.compile }}
free-disk-space: 'true'
debug: 'true'
enable-cache: 'true'
auto-download-artifacts: 'true'
Expand Down
Loading