Skip to content

Commit 9d18bf6

Browse files
authored
Merge pull request #22 from matter-labs/open-source
Add workflows
2 parents 03d6f62 + 9128ce0 commit 9d18bf6

File tree

8 files changed

+153
-3
lines changed

8 files changed

+153
-3
lines changed

.cargo/deny.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[advisories]
2+
ignore = [
3+
"RUSTSEC-2024-0388",
4+
"RUSTSEC-2024-0384",
5+
"RUSTSEC-2024-0370",
6+
]
7+
[bans]
8+
multiple-versions = "warn"
9+
deny = []
10+
skip = []
11+
skip-tree = []
12+
13+
workspace-default-features = "allow"
14+
external-default-features = "allow"
15+
16+
[sources]
17+
unknown-registry = "warn"
18+
unknown-git = "warn"
19+
20+
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
21+
22+
[licenses]
23+
allow = [
24+
"Apache-2.0",
25+
"Apache-2.0 WITH LLVM-exception",
26+
"MIT",
27+
"MPL-2.0",
28+
"BSD-2-Clause",
29+
"BSD-3-Clause",
30+
"Zlib",
31+
"CDDL-1.0",
32+
"ISC",
33+
"Unicode-3.0",
34+
"CC0-1.0",
35+
]
36+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Use this template for reporting issues
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### 🐛 Bug Report
10+
11+
#### 📝 Description
12+
13+
Provide a clear and concise description of the bug.
14+
15+
#### 🔄 Reproduction Steps
16+
17+
Steps to reproduce the behaviour
18+
19+
#### 🤔 Expected Behavior
20+
21+
Describe what you expected to happen.
22+
23+
#### 😯 Current Behavior
24+
25+
Describe what actually happened.
26+
27+
#### 🖥️ Environment
28+
29+
Any relevant environment details.
30+
31+
#### 📋 Additional Context
32+
33+
Add any other context about the problem here. If applicable, add screenshots to help explain.
34+
35+
#### 📎 Log Output
36+
37+
```
38+
Paste any relevant log output here.
39+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Use this template for requesting features
4+
title: ''
5+
labels: feat
6+
assignees: ''
7+
---
8+
9+
### 🌟 Feature Request
10+
11+
#### 📝 Description
12+
13+
Provide a clear and concise description of the feature you'd like to see.
14+
15+
#### 🤔 Rationale
16+
17+
Explain why this feature is important and how it benefits the project.
18+
19+
#### 📋 Additional Context
20+
21+
Add any other context or information about the feature request here.

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## What ❔
2+
3+
<!-- What are the changes this PR brings about? -->
4+
<!-- Example: This PR adds a PR template to the repo. -->
5+
<!-- (For bigger PRs adding more context is appreciated) -->
6+
7+
## Why ❔
8+
9+
<!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? -->
10+
<!-- The `Why` has to be clear to non-Matter Labs entities running their own ZK Chain -->
11+
<!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. -->
12+
13+
## Is this a breaking change?
14+
- [ ] Yes
15+
- [ ] No
16+
17+
## Checklist
18+
19+
<!-- Check your PR fulfills the following items. -->
20+
<!-- For draft PRs check the boxes as you complete them. -->
21+
22+
- [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
23+
- [ ] Tests for the changes have been added / updated.
24+
- [ ] Documentation comments have been added / updated.
25+
- [ ] Code has been formatted.

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- name: Setup
1818
run: |
1919
rustup set profile minimal
20-
git config --global --add url."https://${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}:[email protected]/".insteadOf https://github.com/
2120
- name: Compile
2221
run: cargo build --verbose
2322
- name: tests
@@ -35,7 +34,6 @@ jobs:
3534
- name: Setup
3635
run: |
3736
rustup set profile minimal
38-
git config --global --add url."https://${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}:[email protected]/".insteadOf https://github.com/
3937
- name: Compile
4038
working-directory: ./circuit_mersenne_field
4139
run: cargo build --verbose
@@ -54,7 +52,6 @@ jobs:
5452
- name: Setup
5553
run: |
5654
rustup set profile default
57-
git config --global --add url."https://${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}:[email protected]/".insteadOf https://github.com/
5855
- name: Regenerate wrapper
5956
run: cargo run --bin wrapper_generator --release
6057
- name: Check if anything has changed

.github/workflows/deny.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Used in pull requests
2+
3+
name: Cargo deny check
4+
on: pull_request
5+
permissions: read-all
6+
jobs:
7+
cargo-deny:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: EmbarkStudios/cargo-deny-action@v1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Leaked Secrets Scan
2+
on:
3+
pull_request:
4+
merge_group:
5+
permissions: read-all
6+
jobs:
7+
TruffleHog:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
with:
13+
fetch-depth: 0
14+
- name: TruffleHog OSS
15+
uses: trufflesecurity/trufflehog@a94d152bf65bebf5baa486d3d4dfee520af2ceed # v3.88.2
16+
with:
17+
path: ./
18+
base: ${{ github.event.repository.default_branch }}
19+
head: HEAD
20+
extra_args: --debug --only-verified

circuit_mersenne_field/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "circuit_mersenne_field"
33
version = "0.1.0"
44
edition = "2021"
5+
license = "MIT OR Apache-2.0"
56

67
[dependencies]
78
boojum.workspace = true

0 commit comments

Comments
 (0)