|
5 | 5 | tags: |
6 | 6 | - 'v*' |
7 | 7 |
|
| 8 | +permissions: {} |
| 9 | + |
8 | 10 | jobs: |
9 | 11 | build: |
10 | 12 | name: Build |
|
27 | 29 | - os: windows-latest |
28 | 30 | arch: ia32 |
29 | 31 | runs-on: "${{ matrix.os }}" |
| 32 | + permissions: |
| 33 | + actions: write |
| 34 | + contents: read |
30 | 35 | environment: release |
31 | 36 | steps: |
32 | 37 | - run: git config --global core.autocrlf input |
|
42 | 47 | architecture: ${{ startsWith(matrix.os, 'macos-') && matrix.arch == 'x64' && 'x64' || env.RUNNER_ARCH }} |
43 | 48 | - run: yarn install --immutable |
44 | 49 | - run: yarn run contributors |
| 50 | + env: |
| 51 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
45 | 52 | - run: yarn run electron-releases |
46 | 53 | - name: Install dependencies (Linux) |
47 | 54 | if: ${{ startsWith(matrix.os, 'ubuntu-') }} |
|
54 | 61 | run: chmod +x tools/add-macos-cert.sh && . ./tools/add-macos-cert.sh |
55 | 62 | - name: Write authentication cert to disk (Windows) |
56 | 63 | if: ${{ startsWith(matrix.os, 'windows-') }} |
57 | | - shell: powershell.exe |
| 64 | + shell: powershell |
58 | 65 | env: |
59 | 66 | SM_CLIENT_CERT_P12_BASE64: ${{ secrets.SM_CLIENT_CERT_P12_BASE64 }} |
60 | 67 | run: | |
|
63 | 70 | Add-Content -Path $Profile.CurrentUserAllHosts -Value "`$env:SM_CLIENT_CERT_FILE = '$SM_CLIENT_CERT_FILE'" |
64 | 71 | [IO.File]::WriteAllBytes($SM_CLIENT_CERT_FILE, [Convert]::FromBase64String($env:SM_CLIENT_CERT_P12_BASE64)) |
65 | 72 | - name: Signing Manager Setup (Windows) |
66 | | - shell: powershell.exe |
| 73 | + shell: powershell |
67 | 74 | if: ${{ startsWith(matrix.os, 'windows-') }} |
68 | 75 | env: |
69 | 76 | CERT_FINGERPRINT: ${{ secrets.CERT_FINGERPRINT }} |
@@ -106,6 +113,8 @@ jobs: |
106 | 113 | - build |
107 | 114 | - test |
108 | 115 | environment: release |
| 116 | + permissions: |
| 117 | + contents: read |
109 | 118 | steps: |
110 | 119 | - run: git config --global core.autocrlf input |
111 | 120 | - name: Checkout |
@@ -135,6 +144,8 @@ jobs: |
135 | 144 | name: Notify Sentry Deploy |
136 | 145 | runs-on: ubuntu-latest |
137 | 146 | needs: release |
| 147 | + permissions: |
| 148 | + actions: read |
138 | 149 | steps: |
139 | 150 | - name: Download source maps artifact |
140 | 151 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
|
0 commit comments