Define permissions following the principle of least privilege #1359
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: UKI tests | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
permissions: read-all | ||
concurrency: | ||
group: ci-uki-${{ github.head_ref || github.ref }}-${{ github.repository }} | ||
cancel-in-progress: true | ||
env: | ||
FORCE_COLOR: 1 | ||
jobs: | ||
test-uki: | ||
Check failure on line 15 in .github/workflows/uki.yaml GitHub Actions / UKI testsInvalid workflow file
|
||
strategy: | ||
matrix: | ||
include: | ||
- flavor: ubuntu | ||
flavor_release: 24.04 | ||
family: ubuntu | ||
base_image: ubuntu:24.04 | ||
- flavor: fedora | ||
family: rhel | ||
flavor_release: 40 | ||
base_image: fedora:40 | ||
uses: ./.github/workflows/reusable-uki-test.yaml | ||
permissions: | ||
id-token: write # OIDC support | ||
contents: write | ||
actions: read | ||
security-events: write | ||
secrets: inherit | ||
with: | ||
base_image: ${{ matrix.base_image }} | ||
family: ${{ matrix.family }} | ||
flavor: ${{ matrix.flavor }} | ||
flavor_release: ${{ matrix.flavor_release }} |