forked from frequency-chain/frequency
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/LibertyDSNP/frequency into …
…942-capacity-replace-currency-trait-with-fungible-trait
- Loading branch information
Showing
26 changed files
with
2,807 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,59 @@ | ||
name: Run Generation of Code Coverage | ||
description: Runs cargo llvm-cov | ||
description: Runs cargo grcov | ||
inputs: | ||
code-cov-token: | ||
description: "codecov token" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Install grcov | ||
shell: bash | ||
run: cargo +nightly-2023-07-13 install grcov | ||
- name: Build | ||
shell: bash # Limited to 12 threads max | ||
run: cargo +nightly-2023-07-13 build -j 12 --features frequency-lint-check | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | ||
RUSTDOCFLAGS: "-Cpanic=abort" | ||
- name: Test | ||
shell: bash # Limited to 12 threads max | ||
run: cargo +nightly-2023-07-13 test -j 12 --features frequency-lint-check | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | ||
RUSTDOCFLAGS: "-Cpanic=abort" | ||
# There are a lot of things ignored here to make it all work | ||
# See the grcov docs for more information | ||
# excl rpc traits, and error enums | ||
# Only one of excl start and stop are allowed. | ||
- name: Generate code coverage | ||
shell: bash | ||
run: | | ||
cargo llvm-cov -v --no-fail-fast --workspace --lcov --output-path lcov.info \ | ||
--ignore-filename-regex "^.*\/(node\/|runtime\/|mock\.rs|weights(\.rs)?|benchmarking\.rs|runtime-api/src/lib\.rs).*$" \ | ||
--exclude "frequency,frequency-cli,frequency-runtime,frequency-service" \ | ||
--features frequency-lint-check | ||
grcov . -s . --binary-path ./target/debug/ -t lcov \ | ||
--ignore-not-existing \ | ||
--excl-start '(pub enum Error<T> \{|#\[rpc\()' \ | ||
--excl-stop '\s*}$' \ | ||
--ignore "target/*" \ | ||
--ignore "node/*" \ | ||
--ignore "runtime/*" \ | ||
--ignore "**/*weights.rs" \ | ||
--ignore "**/benchmark*.rs" \ | ||
--ignore "**/*tests.rs" \ | ||
--ignore "**/tests/*.rs" \ | ||
--ignore "**/*mock.rs" \ | ||
--ignore "**/*runtime-api/src/lib.rs" \ | ||
--ignore "*github.com*" \ | ||
--ignore "*libcore*" \ | ||
--ignore "*rustc*" \ | ||
--ignore "*liballoc*" \ | ||
--ignore "*cargo*" \ | ||
-o ./target/debug/lcov.info | ||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4.0.0-beta.3 | ||
with: | ||
files: lcov.info | ||
token: ${{inputs.code-cov-token}} | ||
files: ./target/debug/lcov.info | ||
fail_ci_if_error: false # optional (default = false) | ||
verbose: true # optional (default = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,7 +334,7 @@ Please check out [the information here](./CONTRIBUTING.md). | |
# Security Issue Reporting | ||
Do you know of an on-chain vulnerability (or possible one) that can lead to economic loss, privacy loss, or instability of the network? | ||
Please report it to [[email protected]](mailto:[email protected]) | ||
Please report it by following the steps mentioned in [here](./SECURITY.md). | ||
# Additional Resources | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Security Policy | ||
|
||
We appreciate the efforts of security researchers and the broader community in helping us maintain a | ||
secure environment for our users. If you discover a security vulnerability, we kindly request that | ||
you report it to us privately before disclosing it publicly. This allows us to address the issue | ||
promptly and protect our users. | ||
|
||
## Reporting Security Issues | ||
|
||
**Please do not report security vulnerabilities through public GitHub issues.** | ||
|
||
Instead, please report the vulnerability via [https://github.com/LibertyDSNP/frequency/security/advisories/new](https://github.com/LibertyDSNP/frequency/security/advisories/new). | ||
|
||
Alternatively, you can send email to [[email protected]](mailto:[email protected]). If | ||
possible, encrypt your message with our PGP key; you can download it from [OpenGPG key server](https://keys.openpgp.org/vks/v1/by-fingerprint/0E50AE7CFD8195999CF45370B766E94411B9B734) | ||
or copy from below. | ||
|
||
You should receive a response within 48 hours. If for some reason you do not, please follow up via | ||
email to ensure we received your original message. | ||
|
||
## Report details | ||
Please include the requested information listed below (as much as you can provide) to help us better | ||
understand the nature and scope of the possible issue: | ||
|
||
- Your name and contact information | ||
- Description of the vulnerability | ||
- Attack scenario (if any) | ||
- Step-by-step instructions to reproduce the issue | ||
- Any other details | ||
|
||
**Reminder: This process is only for security related vulnerabilities and if this is a generic issue | ||
(no security implications) with Frequency or Polkadot-sdk or any other dependencies please open a | ||
regular GitHub issue.** | ||
|
||
|
||
## Plaintext PGP Key | ||
|
||
``` | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
mQINBGVt5AsBEADN7Hu5MDzC+J2omxN2cJXiQlgtxyMet6eUcUvtvtmF8viVYLaG | ||
Bf3pGFvsSX3oQEGVMj0Xw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| ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.