Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow permissions #1235

Closed
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
2 changes: 1 addition & 1 deletion .devcontainer/debian-10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:10
FROM debian:10@sha256:46ca02d33c65ab188d6e56f26c323bf1aa9a99074f2f54176fdc3884304f58b8

ARG CMAKE_VERSION="3.26.4"

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/ubuntu-20.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:20.04@sha256:ed4a42283d9943135ed87d4ee34e542f7f5ad9ecf2f244870e23122f703f91c2

ARG CMAKE_VERSION="3.26.4"

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/ubuntu-22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f

ARG CMAKE_VERSION="3.26.4"

Expand Down
15 changes: 15 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,18 @@ updates:
interval: "weekly"
open-pull-requests-limit: 10
rebase-strategy: disabled

- package-ecosystem: docker
directory: /.devcontainer/debian-10
schedule:
interval: weekly

- package-ecosystem: docker
directory: /.devcontainer/ubuntu-20.04
schedule:
interval: weekly

- package-ecosystem: docker
directory: /.devcontainer/ubuntu-22.04
schedule:
interval: weekly
2 changes: 2 additions & 0 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ on:
release:
types: [ published ]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
push:
branches: [ main ]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
- '!**/docs/**/*'
- '!**/*.md'

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
release:
types: [ published ]

permissions: read-all

jobs:
copyright:
runs-on: ubuntu-22.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- '.github/markdownlint.json'
- '.github/markdownlint.jsonc'
- '**/*.md'

permissions: read-all

jobs:
markdown-lint:
name: Lint markdown files
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
schedule:
- cron: '0 0 * * *'

permissions: read-all

jobs:
buildmgr:
if: github.repository == 'Open-CMSIS-Pack/devtools'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ on:
release:
types: [published]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ on:
release:
types: [published]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ on:
release:
types: [published]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/shared_matrix_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ on:
matrix:
value: ${{ jobs.matrix_prep.outputs.matrix }}

permissions: read-all

jobs:
matrix_prep:
runs-on: ubuntu-22.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/shared_setup_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
description: 'Artifact retention days 7 when nightly, else 1'
value: ${{ jobs.config.outputs.retention_days }}

permissions: read-all

jobs:
config:
runs-on: ubuntu-22.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/svdconv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ on:
release:
types: [published]

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
- '!**/docs/**/*'
- '!**/*.md'

permissions: read-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/unit_test_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ on:
types:
- completed

permissions: read-all

jobs:
publish-test-results:
name: Publish Test Results
runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion != 'skipped'
permissions:
checks: write
pull-requests: write

if: github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Download and Extract Artifacts
env:
Expand Down
Loading