From eba4d35de743ce54cc9ae941259977efcd0fa61c Mon Sep 17 00:00:00 2001 From: drptbl Date: Sat, 3 Feb 2024 22:43:37 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20chore:=20Update=20Node?= =?UTF-8?q?.js=20version=20to=20v20.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index 860cc5000..07533ba8b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18.17.1 +v20.11 From 3fa14b73f121806779ac2dc618c7abe5e856552c Mon Sep 17 00:00:00 2001 From: drptbl Date: Sat, 3 Feb 2024 22:43:56 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20chore:=20Update=20pnpm?= =?UTF-8?q?=20version=20to=208.15.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl --- .github/actions/setup/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index e9bd12440..317dc953f 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,7 +5,7 @@ runs: steps: - uses: pnpm/action-setup@v2 with: - version: 8.7.6 + version: 8.15.1 - uses: actions/setup-node@v3 with: From 693ad9dc1884eec1e68dfbaae7803ebbc6599f46 Mon Sep 17 00:00:00 2001 From: drptbl Date: Sat, 3 Feb 2024 22:49:58 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=91=B7=20chore:=20Add=20Dependabot=20?= =?UTF-8?q?configuration=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..5ace4600a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" From aa5ee5b69b1bb6b10a2c43b52b042ebd9d494f96 Mon Sep 17 00:00:00 2001 From: drptbl Date: Sun, 4 Feb 2024 00:24:39 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=93=9D=20chore:=20Add=20bug=20report,?= =?UTF-8?q?=20config,=20and=20feature=20request=20issue=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl --- .github/ISSUE_TEMPLATE/bug_report.yml | 149 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 4 + .github/ISSUE_TEMPLATE/feature-request.yml | 41 ++++++ 3 files changed, 194 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature-request.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 000000000..819521ba5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,149 @@ +name: πŸ› Bug report +description: Create a report with an issue. +title: "[πŸ› Bug]: " +labels: [bug πŸ›, needs triaging ⏳] +body: + - type: checkboxes + attributes: + label: πŸ”Ž Have you searched existing issues to avoid duplicates? + options: + - label: I have made sure that my issue is not a duplicate. + required: true + + - type: checkboxes + attributes: + label: πŸ§ͺ Have you tested your code using latest version of Synpress? + options: + - label: I have made sure that my issue still exists on [latest version of Synpress](https://github.com/Synthetixio/synpress/releases). + required: true + + - type: checkboxes + attributes: + label: πŸ’‘ Are you able to provide enough information to be able to reproduce your issue locally? + options: + - label: I can provide enough details to reproduce my issue on local environment. + required: true + + - type: markdown + attributes: + value: | + + Thanks for taking the time to fill out this bug report! + + - type: markdown + attributes: + value: | + First, let's get some information about the environment you are using: + + - type: input + id: synpress-version + attributes: + label: Synpress version + description: Which version of Synpress are you running? + placeholder: 3.x.x + validations: + required: true + + - type: input + id: node-version + attributes: + label: Node.js version + description: Which version of Node.js are you using? + placeholder: 18.x.x + validations: + required: true + + - type: input + id: os + attributes: + label: Operating system + description: Which OS are you using? + placeholder: macOS Ventura 13.x.x + validations: + required: true + + - type: dropdown + id: run-mode + attributes: + label: Run mode + description: Which run mode are you using to run your tests? + options: + - Synpress (standalone) + - Cypress + Synpress (as plugin) + - Playwright + Synpress (as plugin) + validations: + required: true + + - type: input + id: ci + attributes: + label: CI platform (if applicable) + description: Which CI platform are you using? + placeholder: CircleCI + + - type: checkboxes + attributes: + label: Are you running your tests inside docker? (if applicable) + options: + - label: This issue could be related to docker. + + - type: textarea + id: what-happened + attributes: + label: What happened? + description: | + Describe clearly and concisely the bug including instructions showing how to reproduce it. + placeholder: | + Please add as many details as possible to avoid assumptions from our side. How do you + trigger this bug? Please walk us through it step by step. + validations: + required: true + + - type: textarea + id: what-is-expected + attributes: + label: What is your expected behavior? + description: | + What did you expect to happen instead? + validations: + required: false + + - type: textarea + id: reproducible-example + attributes: + label: How to reproduce the bug. + description: | + It is essential for us to be able to reproduce the bug on our own machines. + Please either create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) in a [new repository](https://github.com/new), a [gist](https://gist.github.com/) or copy and paste all necessary files in here. + + > **What happens if you skip this step?** Someone will read your bug report, and maybe will be able to help you, but it’s unlikely that it will get much attention from the team. Eventually, the issue will likely get closed in favor of issues that have reproducible demos. + + Please remember that: + + - Issues without reproducible demos have a very low priority. + - The person fixing the bug would have to do that anyway. Please be respectful of their time. + - You might figure out the issues yourself as you work on extracting it. + + Thanks for helping us help you! + placeholder: | + To reproduce the bug, create a file with the following code: + ```js + ... + ``` + Then run: + ```sh + $ node reproducibleExample.js + ```` + validations: + required: true + + - type: textarea + id: logs + attributes: + label: Relevant log output + description: | + Please copy and paste any relevant log output. + Setting `DEBUG=synpress:*` env flag before running your tests will provide more descriptive logs. + render: typescript + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..9064bf90d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,4 @@ +contact_links: + - name: ❓ Questions / Help + url: https://discord.gg/XhZKSRGtWc + about: Please ask and answer questions about using Synpress on our Discord - do not raise issues for questions. diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml new file mode 100644 index 000000000..5871e067d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -0,0 +1,41 @@ +name: πŸ’‘ Feature request +description: Suggest an idea for Synpress. +title: "[πŸ’‘ Feature]: <title>" +labels: [idea πŸ’‘, needs triaging ⏳] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time and for sharing your great idea with us. Synpress is an open source project and lives from these great ideas. + + - type: textarea + id: problem + attributes: + label: Is your feature request related to a problem? + description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. + validations: + required: true + + - type: textarea + id: solution + attributes: + label: Describe the solution you'd like. + description: A clear and concise description of what you want to happen. + validations: + required: true + + - type: textarea + id: alternatives + attributes: + label: Describe alternatives you've considered. + description: A clear and concise description of any alternative solutions or features you've considered. + validations: + required: false + + - type: textarea + id: context + attributes: + label: Additional context + description: Add any other context or screenshots about the feature request here. + validations: + required: false From a3a1a2f3ced5211a8536e527d0a3056119dc0087 Mon Sep 17 00:00:00 2001 From: drptbl <jakub.mucha@icloud.com> Date: Sun, 4 Feb 2024 00:24:57 +0000 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=93=9D=20chore:=20Add=20funding,=20se?= =?UTF-8?q?curity,=20and=20support=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl <jakub.mucha@icloud.com> --- .github/FUNDING.yml | 2 ++ .github/SECURITY.md | 5 +++++ .github/SUPPORT.md | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/SECURITY.md create mode 100644 .github/SUPPORT.md diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..28df75bb1 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +custom: + ["https://etherscan.io/address/0x7b57c388e6149b5c197B925037602d5B6bafFbCc"] diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 000000000..f873bcdd5 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,5 @@ +# Reporting Security Issues + +If you believe you have found a security vulnerability in Synpress, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem. + +Please contact us [security@synpress.io](mailto:security@synpress.io) via E-Mail immediately after discovery of the vulnerability. Thanks! diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md new file mode 100644 index 000000000..5fda5b1a8 --- /dev/null +++ b/.github/SUPPORT.md @@ -0,0 +1,11 @@ +# Synpress Support + +Welcome to Synpress! We use GitHub for tracking bugs and feature requests. This isn't the right place to get support for using Synpress, but the following resources are available below, thanks for understanding. + +## Real-time Chat + +- [Discord](https://discord.gg/XhZKSRGtWc) + +## User Documentation + +- [User Documentation](https://synpress.io) From 948075ca995afff68d589b2f98259c832df6aeb3 Mon Sep 17 00:00:00 2001 From: drptbl <jakub.mucha@icloud.com> Date: Sun, 4 Feb 2024 23:27:46 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=91=B7=20feat:=20Add=20audit=20workfl?= =?UTF-8?q?ow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl <jakub.mucha@icloud.com> --- .github/workflows/audit.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 000000000..3a4c48471 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,29 @@ +name: πŸ”Ž Audit + +on: + push: + branches: + - new-dawn + pull_request: + paths: + - 'pnpm-*.yaml' + - 'package.json' + - 'packages/**/package.json' + - 'wallets/**/package.json' + - 'examples/**/package.json' + - 'release/package.json' + - 'docs/package.json' + +jobs: + audit: + name: Audit dependencies + runs-on: ubuntu-latest + container: + image: synthetixio/docker-sec-tools:20.11-alpine + + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1 + + - name: Audit dependencies + run: audit-ci --critical --report-type full From 4294a2fb79abf9af582f97eebd96861aef83a498 Mon Sep 17 00:00:00 2001 From: drptbl <jakub.mucha@icloud.com> Date: Sun, 4 Feb 2024 23:36:18 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=91=B7=20feat:=20Add=20CodeQL=20workf?= =?UTF-8?q?low=20for=20security=20and=20quality=20analysis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: drptbl <jakub.mucha@icloud.com> --- .github/workflows/codeql.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..f97251297 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,30 @@ +name: CodeQL + +on: + push: + branches: + - new-dawn + pull_request: + schedule: + - cron: '0 6 * * 3' + +jobs: + analyze: + runs-on: ubuntu-latest + permissions: + security-events: write + + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4.1.1 + + - name: Initialize CodeQL + uses: github/codeql-action/init@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # pin@v2.16.1 + with: + queries: security-and-quality + languages: javascript-typescript + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@65c74964a9ed8c44ed9f19d4bbc5757a6a8e9ab9 # pin@v2.16.1 + with: + category: "/language:javascript-typescript"