Skip to content

Commit 1bffb14

Browse files
committed
Update workflow permissions
1 parent b061c59 commit 1bffb14

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/cmake-single-platform.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
22
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
33
name: CMake on a single platform
4+
permissions:
5+
contents: read
6+
pull-requests: write
47

58
on:
69
push:

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
with:
7272
languages: ${{ matrix.language }}
7373
build-mode: ${{ matrix.build-mode }}
74+
packs: codeql/misra-cpp-coding-standards,codeql/common-cpp-coding-standards
75+
# config-file: ./.github/codeql/codeql-config.yml
7476
# If you wish to specify custom queries, you can do so here or in a config file.
7577
# By default, queries listed here will override any specified in a config file.
7678
# Prefix the list here with "+" to use these queries and those in the config file.

.github/workflows/sonar-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: SonarQube
2+
permissions:
3+
contents: read
4+
pull-requests: write
25
on:
36
push:
47
branches:

0 commit comments

Comments
 (0)