Skip to content

Commit 349d926

Browse files
authored
build: move permissions to correct places (#401)
1 parent 5cd4292 commit 349d926

File tree

7 files changed

+16
-18
lines changed

7 files changed

+16
-18
lines changed

.github/workflows/cifuzz.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010
cancel-in-progress: true
1111

12+
permissions: read-all
13+
1214
jobs:
1315
Fuzzing:
1416
runs-on: ubuntu-latest

.github/workflows/documentation.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10-
permissions:
11-
contents: write
12-
pages: write
13-
id-token: write
14-
1510
concurrency:
1611
group: ${{ github.workflow }}-${{ github.ref }}
1712
cancel-in-progress: true
1813

1914
jobs:
2015
deploy:
16+
permissions:
17+
contents: write
18+
pages: write
19+
id-token: write
2120
runs-on: ubuntu-latest
2221
steps:
2322
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

.github/workflows/release_create.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
pull_request:
55
types: [closed]
66

7-
permissions:
8-
contents: write
9-
107
env:
118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129

@@ -29,6 +26,8 @@ jobs:
2926
uses: ./.github/workflows/release-script-tests.yml
3027

3128
create-release:
29+
permissions:
30+
contents: write
3231
needs: release-script-test
3332
runs-on: ubuntu-latest
3433
if: ${{ needs.release-script-test.result == 'success' }}

.github/workflows/release_prepare.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ env:
1212
NEXT_RELEASE_TAG: ${{ github.event.inputs.tag }}
1313
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414

15-
permissions:
16-
contents: write
17-
pull-requests: write
18-
1915
jobs:
2016
release-script-test:
2117
uses: ./.github/workflows/release-script-tests.yml
2218

2319
prepare-release-and-pull-request:
20+
permissions:
21+
contents: write
22+
pull-requests: write
2423
needs: release-script-test
2524
runs-on: ubuntu-latest
2625
if: ${{ needs.release-script-test.result == 'success' }}

.github/workflows/visual_studio_clang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3434
- name: Configure
3535
run: |
36-
cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.devchecks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -B build
36+
cmake -DADA_DEVELOPMENT_CHECKS="${{matrix.devchecks}}" -G "${{matrix.gen}}" -A ${{matrix.arch}} -T ClangCL -B build
3737
- name: Build Debug
3838
run: cmake --build build --config Debug --verbose
3939
- name: Run Debug tests

.github/workflows/wpt-updater.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ on:
88
env:
99
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1010

11-
permissions:
12-
contents: write
13-
pull-requests: write
14-
1511
concurrency:
1612
group: wpt-updater
1713
cancel-in-progress: true
1814

1915
jobs:
2016
issue:
2117
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
2221
steps:
2322
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
2423
- name: Fetch tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Ada
2-
![OpenSSF Scorecard Badge](https://api.securityscorecards.dev/projects/github.com/ada-url/ada/badge)
2+
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7085/badge)](https://bestpractices.coreinfrastructure.org/projects/7085)
33
[![Ubuntu 22.04](https://github.com/ada-url/ada/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/ubuntu.yml)
44
[![VS17-CI](https://github.com/ada-url/ada/actions/workflows/visual_studio.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/visual_studio.yml)
55
[![VS17-clang-CI](https://github.com/ada-url/ada/actions/workflows/visual_studio_clang.yml/badge.svg)](https://github.com/ada-url/ada/actions/workflows/visual_studio_clang.yml)

0 commit comments

Comments
 (0)