Skip to content

Commit a8dbda0

Browse files
authored
Merge pull request #410 from crytic/mdbook-ref
Clean up GH Actions and CODEOWNERS
2 parents 9885904 + bc20e47 commit a8dbda0

File tree

9 files changed

+33
-9
lines changed

9 files changed

+33
-9
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* @anishnaik @bsamuels453 @james-miller-93 @Jaime-Iglesias
2+
/program-analysis/echidna/ @elopez
3+
/learn_evm/ @bohendo

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525
submodules: true
26+
persist-credentials: false
2627
- name: Install mdbook
2728
run: |
28-
cargo install --git https://github.com/montyly/mdBook.git mdbook || true
29+
cargo install --git https://github.com/trail-of-forks/mdBook.git --branch building-secure-contracts mdbook || true
2930
- name: Build artifacts
3031
run: mdbook build
3132
- name: Upload artifact

.github/workflows/echidna.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
# run CI every day even if no PRs/merges occur
1818
- cron: "0 12 * * *"
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
tests:
2225
name: ${{ matrix.name }}
@@ -129,6 +132,8 @@ jobs:
129132
steps:
130133
- name: Checkout repository
131134
uses: actions/checkout@v5
135+
with:
136+
persist-credentials: false
132137

133138
- name: Checkout Damn Vulnerable DeFi solutions
134139
uses: actions/checkout@v5
@@ -137,6 +142,7 @@ jobs:
137142
repository: crytic/damn-vulnerable-defi-echidna
138143
ref: solutions
139144
path: ${{ matrix.workdir }}
145+
persist-credentials: false
140146

141147
- name: Set up Nodejs
142148
uses: actions/setup-node@v5

.github/workflows/lint_format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- master
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest
@@ -15,6 +18,7 @@ jobs:
1518
uses: actions/checkout@v5
1619
with:
1720
submodules: true
21+
persist-credentials: false
1822

1923
- name: Set up Node.js
2024
uses: actions/setup-node@v5

.github/workflows/lint_links.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ on:
1515
# run CI at 09:00 every Tuesday even if no PRs/merges occur
1616
- cron: "0 9 * * 2"
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
markdown-link-check:
2023
runs-on: ubuntu-latest
2124
steps:
2225
- uses: actions/checkout@v5
2326
with:
2427
submodules: recursive
28+
persist-credentials: false
2529
- uses: tcort/github-action-markdown-link-check@v1
2630
with:
2731
use-quiet-mode: "yes"

.github/workflows/manticore.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ on:
1515
# run CI every day even if no PRs/merges occur
1616
- cron: "0 12 * * *"
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
tests:
2023
runs-on: ubuntu-22.04
21-
strategy:
22-
fail-fast: false
2324
steps:
2425
- uses: actions/checkout@v5
26+
with:
27+
persist-credentials: false
2528
- name: Set up Python 3.8
2629
uses: actions/setup-python@v6
2730
with:

.github/workflows/medusa.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
# run CI every day even if no PRs/merges occur
1818
- cron: "0 12 * * *"
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
tests:
2225
name: ${{ matrix.name }}
@@ -125,6 +128,8 @@ jobs:
125128
steps:
126129
- name: Checkout repository
127130
uses: actions/checkout@v5
131+
with:
132+
persist-credentials: false
128133

129134
- name: Checkout Damn Vulnerable DeFi solutions
130135
uses: actions/checkout@v5
@@ -133,6 +138,7 @@ jobs:
133138
repository: crytic/damn-vulnerable-defi-echidna
134139
ref: solutions
135140
path: ${{ matrix.workdir }}
141+
persist-credentials: false
136142

137143
- name: Set up Nodejs
138144
uses: actions/setup-node@v5

CODEOWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ We utilize `mdbook` to generate [secure-contracts.com](https://secure-contracts.
6868

6969
To run it locally:
7070

71-
```
72-
cargo install --git https://github.com/montyly/mdBook.git mdbook
71+
```bash
72+
cargo install --git https://github.com/trail-of-forks/mdBook.git --branch building-secure-contracts mdbook
7373
mdbook build
7474
```
7575

76-
Note: We use https://github.com/montyly/mdBook.git, which contains https://github.com/rust-lang/mdBook/pull/1584.
76+
Note: We use https://github.com/trail-of-forks/mdBook.git, which contains https://github.com/rust-lang/mdBook/pull/1584.

0 commit comments

Comments
 (0)