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
6 changes: 5 additions & 1 deletion .github/workflows/build-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ on:
# allow manual runs
workflow_dispatch:

# implicitely set all other permissions to none
permissions:
contents: read
checks: write # test.yml
contents: read # debos.yml test.yml
packages: read # test.yml
pull-requests: write # test.yml

jobs:
build-daily:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: Build on PR
on:
pull_request:

# implicitely set all other permissions to none
permissions:
checks: write # required by test reporting action
pull-requests: write # required by test reporting action
contents: read # github default
packages: read # github default
checks: write # test.yml
contents: read # debos.yml lava-schema-check.yml test.yml
packages: read # test.yml
pull-requests: write # test.yml

jobs:
event-file:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
push:
branches: [main]

# implicitely set all other permissions to none
permissions:
checks: write
pull-requests: write
contents: read
packages: read
checks: write # test.yml
contents: read # debos.yml lava-schema-check.yml test.yml
packages: read # test.yml
pull-requests: write # test.yml

jobs:
build-daily:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/debos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:
description: "URL to retrieve build artifacts"
value: ${{ jobs.build-debos.outputs.url }}

# only need permission to read repository; implicitely set all other
# permissions to none
# implicitely set all other permissions to none
permissions:
contents: read
contents: read # actions/checkout

# cancel in progress builds for this workflow triggered by the same ref
concurrency:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/lava-schema-check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Chech LAVA templates
name: Check LAVA templates

on:
workflow_call:

# implicitely set all other permissions to none
permissions:
contents: read # actions/checkout

jobs:
schema-check:
runs-on: ubuntu-latest
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:
# allow manual runs
workflow_dispatch:

# only need permission to read repository; implicitely set all other
# permissions to none
# implicitely set all other permissions to none
permissions:
contents: read
contents: read # actions/checkout

env:
# where results will be posted/hosted
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/static-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ on:
push:
branches: [main]

# only need permission to read repository; implicitely set all other
# permissions to none
# implicitely set all other permissions to none
permissions:
contents: read
contents: read # actions/checkout

# cancel in progress builds for this workflow triggered by the same ref
concurrency:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:
types:
- completed

# implicitely set all other permissions to none
permissions:
checks: write # required by test reporting action
pull-requests: write # required by test reporting action
contents: read # github default
packages: read # github default
checks: write # test.yml EnricoMi/publish-unit-test-result-action
contents: read # test.yml actions/checkout
packages: read # test.yml actions/download-artifact
# test.yml EnricoMi/publish-unit-test-result-action
# thollander/actions-comment-pull-request
pull-requests: write

jobs:
retrieve-build-url:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
required: true
type: string

# implicitely set all other permissions to none
permissions:
checks: write # EnricoMi/publish-unit-test-result-action
contents: read # actions/checkout
packages: read # actions/download-artifact
pull-requests: write # EnricoMi/publish-unit-test-result-action

jobs:
prepare-job-list:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,9 +81,6 @@ jobs:
name: "Publish Tests Results"
needs: submit-job
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write

steps:
- name: Download Artifacts
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/u-boot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ on:
# allow manual runs
workflow_dispatch:

# only need permission to read repository; implicitely set all other
# permissions to none
# implicitely set all other permissions to none
permissions:
contents: read
contents: read # actions/checkout

env:
# where results will be posted/hosted
Expand Down
Loading