Skip to content

Commit 271c35a

Browse files
fix: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 6fc8624 commit 271c35a

8 files changed

Lines changed: 17 additions & 1 deletion

.github/workflows/clang-format-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: clang-format Check
2+
permissions:
3+
contents: read
24
on: [push, pull_request]
35
jobs:
46
formatting-check:

.github/workflows/cmake-format-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Check CMake Formatting
2+
permissions:
3+
contents: read
24

35
on: [push, pull_request]
46

.github/workflows/conventional-commit-check-pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Conventional commit check
22
on: [pull_request]
3+
permissions:
4+
contents: read
35

46
jobs:
57
cog_check_job:

.github/workflows/conventional-commit-check-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Conventional commit check
2+
permissions:
3+
contents: read
24
on: [push]
35

46
jobs:

.github/workflows/qt-build-release-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CMake build release for linux
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/qt-build-release-win.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CMake build release for win
2+
permissions:
3+
contents: read
24

35
on:
46
push:

.github/workflows/qt-build-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: CMake build check
2+
permissions:
3+
contents: read
24

35
on:
46
push:
@@ -54,4 +56,4 @@ jobs:
5456
with:
5557
name: WingHexExplorer2-${{ matrix.os == 'windows-latest' && 'windows' || 'linux' }}-${{ matrix.qt_version }}-build-cache
5658
path: ${{github.workspace}}/build
57-
59+

.github/workflows/reademe-contributors.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main
88

99
name: Generate a list of contributors
10+
permissions:
11+
contents: write
1012

1113
jobs:
1214
contrib-readme-en-job:

0 commit comments

Comments
 (0)