Skip to content

Commit 08bd847

Browse files
committed
GHA: Add permissions to workflows
1 parent 45a2d04 commit 08bd847

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright 2020-2021 Peter Dimov
22
# Copyright 2021 Andrey Semashev
3-
# Copyright 2021-2025 Alexander Grund
3+
# Copyright 2021-2026 Alexander Grund
44
# Copyright 2022 James E. King III
55
#
66
# Distributed under the Boost Software License, Version 1.0.
@@ -9,6 +9,9 @@
99
---
1010
name: CI
1111

12+
permissions:
13+
contents: write
14+
1215
on:
1316
pull_request:
1417
push:

.github/workflows/ci_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# Copyright 2019 - 2025 Alexander Grund
1+
# Copyright 2019 - 2026 Alexander Grund
22
# Distributed under the Boost Software License, Version 1.0.
33
# https://www.boost.org/LICENSE_1_0.txt
44

55
name: CI Tests
66

7+
permissions:
8+
contents: write
9+
710
on:
811
pull_request:
912
push:

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Distributed under the Boost Software License, Version 1.0.
33
# https://www.boost.org/LICENSE_1_0.txt
44

5+
permissions:
6+
contents: write
7+
58
on:
69
push:
710
tags:
@@ -14,8 +17,6 @@ jobs:
1417
release:
1518
name: Create Release
1619
runs-on: ubuntu-latest
17-
permissions:
18-
contents: write
1920
env:
2021
DEP_DIR: ${{github.workspace}}/dependencies
2122
steps:

.github/workflows/update_standalone.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Distributed under the Boost Software License, Version 1.0.
33
# https://www.boost.org/LICENSE_1_0.txt
44

5+
permissions:
6+
contents: write
7+
58
on:
69
push:
710
branches: [develop]

0 commit comments

Comments
 (0)