Skip to content

Commit 9691eef

Browse files
committed
ci: Run zizmor auto-fix, with some manual fixes to permissions
1 parent fac47f5 commit 9691eef

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/single_sdk_tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
# if the workflow uses '.'
3434
- name: Checkout repo
3535
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+
with:
37+
persist-credentials: false
3638
- name: Resolve branches
3739
shell: bash
3840
# these env vars will be modified and used in subsequent steps
@@ -128,9 +130,10 @@ jobs:
128130
# which we then pass to rebuild_rust_sdk.sh
129131
- name: Setup | Rust
130132
if: ${{ inputs.use_rust_sdk != '' }}
131-
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable v1.93.1
132-
with:
133-
toolchain: stable
133+
run: |
134+
rustup --version
135+
rustup toolchain install 1.93.1
136+
rustup default 1.93.1
134137
- name: "Download Rust SDK" # no need to download rust SDK if we are using the local checkout.
135138
if: ${{ inputs.use_rust_sdk != '' && inputs.use_rust_sdk != '.'}}
136139
run: |

.github/workflows/tests.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches: ["main"]
@@ -9,7 +12,7 @@ on:
912
jobs:
1013
check-signoff:
1114
if: "github.event_name == 'pull_request'"
12-
uses: "matrix-org/backend-meta/.github/workflows/sign-off.yml@v2"
15+
uses: matrix-org/backend-meta@18beaf3c8e536108bd04d18e6c3dc40ba3931e28 # v2
1316

1417
js-latest-main:
1518
name: Tests (JS only, latest)
@@ -30,6 +33,8 @@ jobs:
3033
runs-on: ubuntu-22.04
3134
steps:
3235
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+
with:
37+
persist-credentials: false
3338

3439
# Install Node, Go and Rust, along with gotestfmt
3540
- name: Setup | Node.js LTS
@@ -43,9 +48,10 @@ jobs:
4348
with:
4449
go-version: "1.21"
4550
- name: Setup | Rust
46-
uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable v1.93.1
47-
with:
48-
toolchain: stable
51+
run: |
52+
rustup --version
53+
rustup toolchain install stable
54+
rustup default stable
4955
- name: Checkout matrix-rust-sdk
5056
run: |
5157
BRANCH=$(./.github/workflows/resolve_branch.sh matrix-org/matrix-rust-sdk)

0 commit comments

Comments
 (0)