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
8 changes: 6 additions & 2 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main
Expand Down Expand Up @@ -215,6 +218,8 @@ jobs:
# Debian package generation in ubuntu 22.04 produces incompatible metadata
runs-on: ubuntu-22.04
timeout-minutes: 15
permissions:
contents: write
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down Expand Up @@ -506,8 +511,7 @@ jobs:
AC6_TOOLCHAIN_6_18_0: ${{ github.workspace }}/${{ matrix.toolchain_root }}
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
fail-fast: true

steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
release:
types: [ published ]

permissions:
contents: read

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:
- '.github/markdownlint.json'
- '.github/markdownlint.jsonc'
- '**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
linter:
name: Lint markdown files
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@

name: nightly

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
buildmgr:
if: github.repository == 'Open-CMSIS-Pack/devtools'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main
Expand All @@ -60,6 +63,8 @@ jobs:
strategy:
fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
permissions:
contents: write
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down Expand Up @@ -324,6 +329,8 @@ jobs:
if-no-files-found: error

release:
permissions:
contents: write
if: |
github.event_name == 'release' &&
startsWith(github.ref, 'refs/tags/tools/packchk/')
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main
Expand Down Expand Up @@ -114,7 +117,8 @@ jobs:
needs: [ build, unittest ]
runs-on: ubuntu-22.04
timeout-minutes: 15

permissions:
contents: write
steps:
- name: Checkout devtools
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: projmgr
on:
workflow_call:
Expand Down Expand Up @@ -40,6 +39,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main
Expand Down Expand Up @@ -204,6 +206,8 @@ jobs:
needs: [ build, build-swig, unittest, coverage ]
runs-on: ubuntu-22.04
timeout-minutes: 15
permissions:
contents: write

steps:
- name: Checkout devtools
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,17 @@ on:
branches: [ "main" ]
workflow_dispatch:

# Declare default permissions as read only.
permissions: read-all
permissions:
contents: read

jobs:
analysis:
if: github.repository == 'Open-CMSIS-Pack/devtools'
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read

steps:
- name: Harden Runner
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/svdconv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main
Expand All @@ -52,6 +55,8 @@ jobs:
strategy:
fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
permissions:
contents: write
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test_libs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


name: test_libs
on:
workflow_call:
Expand All @@ -26,6 +24,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
setup:
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unit_test_results.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


name: Publish Test Results

on:
Expand All @@ -10,6 +8,9 @@ on:
types:
- completed

permissions:
contents: read

jobs:
publish-test-results:
name: Publish Test Results
Expand Down
Loading