Skip to content

Commit df7ea5a

Browse files
Clean up workflow files for Zizmor (#2121)
1 parent 0d06d4c commit df7ea5a

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/ci-bwa.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ on:
4242
type: boolean
4343
default: true
4444
xcode-version:
45-
description: "Xcode Version Override - e.g. '15.2'"
46-
type: string
45+
description: "Xcode Version Override - e.g. '15.2'"
46+
type: string
4747

4848
permissions:
4949
contents: read
50-
id-token: write
5150

5251
jobs:
5352
version:
@@ -64,6 +63,8 @@ jobs:
6463
build-manual:
6564
name: Build Manual - ${{ inputs.build-mode }}
6665
needs: version
66+
permissions:
67+
id-token: write
6768
if: ${{ github.event_name == 'workflow_dispatch' && inputs.build-mode != 'CI' }}
6869
uses: bitwarden/ios/.github/workflows/_build-any.yml@main
6970
with:
@@ -79,6 +80,8 @@ jobs:
7980
build-public:
8081
name: Build CI
8182
needs: version
83+
permissions:
84+
id-token: write
8285
if: ${{ github.event_name == 'push' || inputs.build-mode == 'CI' }}
8386
uses: bitwarden/ios/.github/workflows/_build-any.yml@main
8487
strategy:

.github/workflows/ci-bwpm.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ on:
4545
type: boolean
4646
default: true
4747
xcode-version:
48-
description: "Xcode Version Override - e.g. '15.2'"
49-
type: string
48+
description: "Xcode Version Override - e.g. '15.2'"
49+
type: string
5050

5151
permissions:
5252
contents: read
53-
id-token: write
5453

5554
jobs:
5655
version:
@@ -67,6 +66,8 @@ jobs:
6766
build-manual:
6867
name: Build Manual - ${{ inputs.build-variant }} (${{ inputs.build-mode }})
6968
needs: version
69+
permissions:
70+
id-token: write
7071
if: ${{ github.event_name == 'workflow_dispatch' && inputs.build-mode != 'CI' }}
7172
uses: bitwarden/ios/.github/workflows/_build-any.yml@main
7273
with:
@@ -82,6 +83,8 @@ jobs:
8283
build-public:
8384
name: Build CI
8485
needs: version
86+
permissions:
87+
id-token: write
8588
if: ${{ github.event_name == 'push' || inputs.build-mode == 'CI' }}
8689
uses: bitwarden/ios/.github/workflows/_build-any.yml@main
8790
strategy:

0 commit comments

Comments
 (0)