From 54612bee30f5482141a1759a241511f7630f2696 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:55:35 +0530 Subject: [PATCH 01/13] fix connect --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 640a837b8..f20b1712a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ parameters: default: "latest" orbs: - circleci-tailscale: threecomma/circleci-tailscale@2.2.0 + tailscale: threecomma/circleci-tailscale@2.2.0 jobs: scan-and-report: @@ -27,7 +27,7 @@ jobs: chmod +x dart-analyzer-sarif ./dart-analyzer-sarif --input dart_analyze.txt --output dart_analyze.sarif - - connect + - tailscale/connect - run: name: Upload SARIF report to DeepSource environment: From f6bca1461709e465be37c5e0c90f727d405ba5c3 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:59:51 +0530 Subject: [PATCH 02/13] update python command and dart image --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f20b1712a..2850c7a86 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,7 @@ orbs: jobs: scan-and-report: docker: - - image: google/dart:<> + - image: dart:<> steps: - checkout @@ -24,8 +24,7 @@ jobs: name: Dart Analyze to SARIF command: | curl -sSL https://raw.githubusercontent.com/advanced-security/dart-analyzer-sarif/main/dart_analyzer_sarif.py > dart-analyzer-sarif - chmod +x dart-analyzer-sarif - ./dart-analyzer-sarif --input dart_analyze.txt --output dart_analyze.sarif + python3 dart-analyzer-sarif --input dart_analyze.txt --output dart_analyze.sarif - tailscale/connect - run: From d7454d48d90a7cef6d803bbf2ca210d6b604abdc Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:05:36 +0530 Subject: [PATCH 03/13] add python setup --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2850c7a86..32b1f8b63 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,12 @@ jobs: steps: - checkout + - run: + name: Setup Python + command: | + apt update + apt install python3 + - run: name: Run Dart Analyze command: dart analyze > dart_analyze.txt || true From 23fb48a85e4ddd49cc6276a5e13707865a2ee74a Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:06:21 +0530 Subject: [PATCH 04/13] remove github actions --- .github/FUNDING.yml | 1 - .github/ISSUE_TEMPLATE/bug_report.md | 18 ------------- .github/ISSUE_TEMPLATE/config.yml | 5 ---- .github/ISSUE_TEMPLATE/example_request.md | 20 -------------- .github/ISSUE_TEMPLATE/feature_request.md | 20 -------------- .github/dependabot.yaml | 7 ----- .github/workflows/dart_analyze.yaml | 33 ----------------------- 7 files changed, 104 deletions(-) delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/example_request.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/dependabot.yaml delete mode 100644 .github/workflows/dart_analyze.yaml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 63c29411f..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: rrousselGit diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 20065d840..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Bug report -about: There is a problem in how provider behaves -title: "" -labels: bug, needs triage -assignees: - - rrousselGit ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** - - - -**Expected behavior** -A clear and concise description of what you expected to happen. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index e49231f6e..000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: I have a problem and I need help - url: https://github.com/rrousselGit/riverpod/discussions - about: Please ask and answer questions here. diff --git a/.github/ISSUE_TEMPLATE/example_request.md b/.github/ISSUE_TEMPLATE/example_request.md deleted file mode 100644 index 332337ba3..000000000 --- a/.github/ISSUE_TEMPLATE/example_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Documentation improvement request -about: >- - Suggest a new example/documentation or ask for clarification about an - existing one. -title: "" -labels: documentation, needs triage -assignees: - - rrousselGit ---- - -**Describe what scenario you think is uncovered by the existing examples/articles** -A clear and concise description of the problem that you want explained. - -**Describe why existing examples/articles do not cover this case** -Explain which examples/articles you have seen before making this request, and -why they did not help you with your problem. - -**Additional context** -Add any other context or screenshots about the documentation request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 65c5ae355..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: "" -labels: enhancement, needs triage -assignees: - - rrousselGit ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 39bd9ac19..000000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: 2 -enable-beta-ecosystems: true -updates: - - package-ecosystem: "pub" - directory: "/" - schedule: - interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/dart_analyze.yaml b/.github/workflows/dart_analyze.yaml deleted file mode 100644 index 27760a811..000000000 --- a/.github/workflows/dart_analyze.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Dart Analyzer to SARIF -on: [push] -jobs: - dart-analyzer: - permissions: - contents: read # for actions/checkout to fetch code - security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - runs-on: ubuntu-latest - name: Dart Analyzer to SARIF - steps: - - name: Checkout - uses: actions/checkout@v2 - - uses: dart-lang/setup-dart@v1 - with: - sdk: beta - - name: Dart Analyze - run: dart analyze > dart_analyze.txt || true - - name: Dart Analyze to SARIF - uses: advanced-security/dart-analyzer-sarif@main - with: - input: dart_analyze.txt - output: dart_analyze.sarif - - name: Upload SARIF to DeepSource - run: | - # Install the CLI - curl https://deepsource.io/cli | sh - - # Send the report to DeepSource - ./bin/deepsource report --analyzer dart-analyze --analyzer-type community --value-file ./dart_analyze.sarif - - env: - DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} From 41cde1249e4efec4a13010b90bad678004ffb887 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:07:41 +0530 Subject: [PATCH 05/13] fix indentation --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 32b1f8b63..f9d949de5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,10 +17,10 @@ jobs: - checkout - run: - name: Setup Python - command: | - apt update - apt install python3 + name: Setup Python + command: | + apt update + apt install python3 - run: name: Run Dart Analyze From df0fa33a5daffd68a804f877d06d6fc1b05ccb42 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:09:22 +0530 Subject: [PATCH 06/13] python add install -y --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f9d949de5..fb4f196b8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ jobs: name: Setup Python command: | apt update - apt install python3 + apt install -y python3 - run: name: Run Dart Analyze From 9179d404a5cff50f5d621867a1a110923b2857da Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:19:42 +0530 Subject: [PATCH 07/13] add correct env variables --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fb4f196b8..3bcc4faf1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,7 +30,7 @@ jobs: name: Dart Analyze to SARIF command: | curl -sSL https://raw.githubusercontent.com/advanced-security/dart-analyzer-sarif/main/dart_analyzer_sarif.py > dart-analyzer-sarif - python3 dart-analyzer-sarif --input dart_analyze.txt --output dart_analyze.sarif + python3 dart-analyzer-sarif dart_analyze.txt dart_analyze.sarif $HOME --repo-uri $CIRCLE_REPOSITORY_URL --branch $CIRCLE_BRANCH --revision-id $CIRCLE_SHA1 - tailscale/connect - run: From b2901be44e55244864610eb48d4fb111d1fe72c5 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:25:07 +0530 Subject: [PATCH 08/13] update vars --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bcc4faf1..93b6747f7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,7 +30,7 @@ jobs: name: Dart Analyze to SARIF command: | curl -sSL https://raw.githubusercontent.com/advanced-security/dart-analyzer-sarif/main/dart_analyzer_sarif.py > dart-analyzer-sarif - python3 dart-analyzer-sarif dart_analyze.txt dart_analyze.sarif $HOME --repo-uri $CIRCLE_REPOSITORY_URL --branch $CIRCLE_BRANCH --revision-id $CIRCLE_SHA1 + python3 dart-analyzer-sarif dart_analyze.txt dart_analyze.sarif $HOME --repo-uri <> --branch <> --revision-id <> - tailscale/connect - run: From 19dc7f25cc32b4e46e5ebe0c4fe51122a862c8ce Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:28:05 +0530 Subject: [PATCH 09/13] install tailscale --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 93b6747f7..193d0ff0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,8 +19,10 @@ jobs: - run: name: Setup Python command: | + curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null + curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list apt update - apt install -y python3 + apt install -y python3 tailscale - run: name: Run Dart Analyze From d85ae030d326f8c5182138373c54a959c5848741 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:28:59 +0530 Subject: [PATCH 10/13] remove sudo --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 193d0ff0b..537d93ab9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,8 +19,8 @@ jobs: - run: name: Setup Python command: | - curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null - curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list + curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null + curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | tee /etc/apt/sources.list.d/tailscale.list apt update apt install -y python3 tailscale From 62410cbd3caa05f3b1c7235b1fc0b70803fcb08f Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:31:45 +0530 Subject: [PATCH 11/13] echo --- .circleci/config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 537d93ab9..75c0d48bf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,8 +43,7 @@ jobs: # Install the DeepSource CLI curl https://deepsource.io/cli | sh - # Set the DEEPSOURCE_DSN environment variable - export DEEPSOURCE_DSN="${DEEPSOURCE_DSN}" + echo $DEEPSOURCE_DSN # Send the report to DeepSource ./bin/deepsource report --analyzer dart-analyze --analyzer-type community --value-file ./dart_analyze.sarif From 6be029c7face027ae95cd15ed3847207438aed40 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:33:59 +0530 Subject: [PATCH 12/13] env changes --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 75c0d48bf..95128761a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,8 +37,6 @@ jobs: - tailscale/connect - run: name: Upload SARIF report to DeepSource - environment: - DEEPSOURCE_DSN: $DEEPSOURCE_DSN command: | # Install the DeepSource CLI curl https://deepsource.io/cli | sh From 9fb4f6120e255f75e6f8c0a98e902151164ef1d8 Mon Sep 17 00:00:00 2001 From: Parth <86726240+parth-deepsource@users.noreply.github.com> Date: Wed, 20 Dec 2023 18:03:35 +0530 Subject: [PATCH 13/13] remove --- .circleci/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 95128761a..58d09e906 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,8 +41,6 @@ jobs: # Install the DeepSource CLI curl https://deepsource.io/cli | sh - echo $DEEPSOURCE_DSN - # Send the report to DeepSource ./bin/deepsource report --analyzer dart-analyze --analyzer-type community --value-file ./dart_analyze.sarif