From 6cfff1688a70acac882757c82d7aaf6108d335c0 Mon Sep 17 00:00:00 2001 From: Saranya Jena Date: Wed, 21 Feb 2024 16:12:41 +0530 Subject: [PATCH 1/2] Updated Contributing Guidelines (#4453) * Updated Contributing Guidelines Signed-off-by: Saranya-jena * added backstage plugin for contribution Signed-off-by: Saranya-jena --------- Signed-off-by: Saranya-jena --- CONTRIBUTING.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8c310849cdd..fa59864d234 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,9 +8,9 @@ Thanks for your interest in contributing to Litmus and help improve the project! ## Where to Begin! -If you have any queries or requests about Litmus please [create an issue](https://github.com/litmuschaos/litmus/issues/new) on GitHub. If you want to comment or ask questions to the contributors start by [joining our community](http://slack.litmuschaos.io) and drop your questions in the #litmus channel. +If you have any queries or requests about Litmus please [create an issue](https://github.com/litmuschaos/litmus/issues/new) on GitHub. If you want to comment or ask questions to the contributors start by [joining our community](http://slack.litmuschaos.io) and drop your questions in the **#litmus** channel. -If you want to do code contributions but you are fairly new to the tech stack we are using! Check out the [Development Guide](https://github.com/litmuschaos/litmus/wiki/Litmus-Portal-Development-Guide) to get a reference and help get started. +If you want to do code contributions but you are fairly new to the tech stack we are using! Check out the [Local Development Guide](https://github.com/litmuschaos/litmus/wiki/ChaosCenter-Development-Guide) and [Development Best Practices](https://github.com/litmuschaos/litmus/wiki/Development-Best-Practices) to get a reference and help get started. We welcome contributions of all kinds @@ -59,6 +59,7 @@ To submit any kinds of improvements, please consider the following: - If you are making a change to the user interface (UI), include a screenshot of the UI changes. - Follow the relevant coding style guidelines - For backend contributions, popular ones are the [Go Code Review Comments](https://code.google.com/p/go-wiki/wiki/CodeReviewComments) and the _Formatting_ and _style_ section of Peter Bourgon's [Go: Best Practices for Production Environments](https://peter.bourgon.org/go-in-production/#formatting-and-style). + - If you are making any changes in backend, make sure you have run and tested the code locally, the reviewers might ask for relevant screenshots in the comments. - For frontend contributions, we follow the [Airbnb style guide](https://airbnb.io/javascript/react/) - Your branch may be merged once all configured checks pass, including: - The branch has passed tests in CI. @@ -95,7 +96,10 @@ You can choose from a list of sub-dependent repos to contribute to, a few highli - [Chaos-workflows](https://github.com/litmuschaos/chaos-workflows) - [Test-tools](https://github.com/litmuschaos/test-tools) - [Litmus-go](https://github.com/litmuschaos/litmus-go) -- [website-litmuschaos](https://github.com/litmuschaos/website-litmuschaos) +- [Litmus-website](https://github.com/litmuschaos/litmus-website-2) +- [Litmusctl](https://github.com/litmuschaos/litmusctl) +- [Litmus-docs](https://github.com/litmuschaos/litmus-docs) +- [backstage-plugin](https://github.com/litmuschaos/backstage-plugin) ## Community From 5df01f1c386ab142015c03d998f6c18587e01d20 Mon Sep 17 00:00:00 2001 From: Saranya Jena Date: Wed, 21 Feb 2024 16:59:34 +0530 Subject: [PATCH 2/2] Added required manifest integrate OSS-Fuzz in CI (#4455) Signed-off-by: Saranya-jena --- .github/workflows/cifuzz.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/cifuzz.yml diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml new file mode 100644 index 00000000000..a0eacca529c --- /dev/null +++ b/.github/workflows/cifuzz.yml @@ -0,0 +1,41 @@ +name: CIFuzz +on: [pull_request] +permissions: {} +jobs: + Fuzzing: + runs-on: ubuntu-latest + permissions: + security-events: write + strategy: + fail-fast: false + matrix: + sanitizer: [address] + steps: + - name: Build Fuzzers (${{ matrix.sanitizer }}) + id: build + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master + with: + oss-fuzz-project-name: 'litmuschaos' + language: go + sanitizer: ${{ matrix.sanitizer }} + - name: Run Fuzzers (${{ matrix.sanitizer }}) + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: 'litmuschaos' + language: go + fuzz-seconds: 600 + sanitizer: ${{ matrix.sanitizer }} + output-sarif: true + - name: Upload Crash + uses: actions/upload-artifact@v3 + if: failure() && steps.build.outcome == 'success' + with: + name: ${{ matrix.sanitizer }}-artifacts + path: ./out/artifacts + - name: Upload Sarif + if: always() && steps.build.outcome == 'success' + uses: github/codeql-action/upload-sarif@v2 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: cifuzz-sarif/results.sarif + checkout_path: cifuzz-sarif