Skip to content

Commit eedca4a

Browse files
committed
Revert "chore: add check-user-trust in ci"
This reverts commit f2f8473.
1 parent 0a4291b commit eedca4a

File tree

2 files changed

+17
-51
lines changed

2 files changed

+17
-51
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
11
name: 'CI'
2-
on:
3-
pull_request_target:
4-
types:
5-
- opened
6-
- synchronize
7-
- labeled
8-
- reopened
9-
10-
permissions:
11-
contents: read
12-
pull-requests: read
2+
on: pull_request
133

144
env:
155
RUST_BACKTRACE: 1
166
CARGO_TERM_COLOR: always
177

188
jobs:
19-
check-user-trust:
20-
runs-on: ubuntu-latest
21-
outputs:
22-
is-trusted: ${{ steps.check.outputs.is_trusted }}
23-
steps:
24-
- name: Check if PR sender is trusted
25-
id: check
26-
run: |
27-
ASSOC="${{ github.event.sender.author_association }}"
28-
echo "Sender association: $ASSOC"
29-
if [[ "$ASSOC" == "OWNER" || "$ASSOC" == "MEMBER" || "$ASSOC" == "COLLABORATOR" ]]; then
30-
echo "trusted=true" >> $GITHUB_OUTPUT
31-
else
32-
echo "trusted=false" >> $GITHUB_OUTPUT
33-
fi
34-
359
test-stable-hosted:
3610
strategy:
3711
fail-fast: false
@@ -40,8 +14,6 @@ jobs:
4014
- [self-hosted, Linux, amd64]
4115
- [self-hosted, Linux, aarch64]
4216
name: Rust stable
43-
needs: check-user-trust
44-
if: needs.check-user-trust.outputs.is_trusted == 'true'
4517
runs-on: ${{matrix.os}}
4618
timeout-minutes: 45
4719
steps:
@@ -50,8 +22,6 @@ jobs:
5022
- run: ./scripts/test.sh
5123

5224
test-stable-wasm:
53-
needs: check-user-trust
54-
if: needs.check-user-trust.outputs.is_trusted == 'true'
5525
runs-on: [self-hosted, Linux, amd64]
5626
env:
5727
WASMTIME_BACKTRACE_DETAILS: 1
@@ -72,8 +42,6 @@ jobs:
7242
7343
7444
test-nightly-hosted:
75-
needs: check-user-trust
76-
if: needs.check-user-trust.outputs.is_trusted == 'true'
7745
strategy:
7846
fail-fast: false
7947
matrix:
@@ -89,8 +57,6 @@ jobs:
8957
- run: ./scripts/test.sh
9058

9159
clippy_lint:
92-
needs: check-user-trust
93-
if: needs.check-user-trust.outputs.is_trusted == 'true'
9460
name: Format check
9561
runs-on: [self-hosted, Linux, amd64]
9662
timeout-minutes: 45
@@ -105,8 +71,6 @@ jobs:
10571
cargo fmt -- --check
10672
10773
sanitize:
108-
needs: check-user-trust
109-
if: needs.check-user-trust.outputs.is_trusted == 'true'
11074
strategy:
11175
fail-fast: false
11276
matrix:
@@ -126,8 +90,6 @@ jobs:
12690
run: ./scripts/sanitize.sh ${{matrix.san}} ${{matrix.feature}}
12791

12892
fuzz:
129-
needs: check-user-trust
130-
if: needs.check-user-trust.outputs.is_trusted == 'true'
13193
runs-on: [self-hosted, Linux, amd64]
13294
steps:
13395
- uses: actions/checkout@v4
@@ -139,15 +101,3 @@ jobs:
139101
token: ${{ secrets.GITHUB_TOKEN }}
140102
- name: Fuzz
141103
run: ./scripts/fuzz.sh
142-
143-
security-audit:
144-
needs: check-user-trust
145-
if: needs.check-user-trust.outputs.is_trusted == 'true'
146-
runs-on: [self-hosted, Linux, amd64]
147-
steps:
148-
- uses: actions/checkout@v4
149-
- uses: dtolnay/rust-toolchain@stable
150-
- uses: actions-rs/audit-check@v1
151-
with:
152-
token: ${{ secrets.GITHUB_TOKEN }}
153-

.github/workflows/security.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Security Audit"
2+
on:
3+
pull_request:
4+
push:
5+
paths:
6+
- "**/Cargo.toml"
7+
- "**/Cargo.lock"
8+
jobs:
9+
security-audit:
10+
runs-on: [self-hosted, Linux, amd64]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: dtolnay/rust-toolchain@stable
14+
- uses: actions-rs/audit-check@v1
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)