From b4e9429cbcf0bff6716ed2b0f5de77408d207fa8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 16 Dec 2023 00:55:27 +0000 Subject: [PATCH 1/7] Bump octokit from 2.0.10 to 3.1.2 in /docs Bumps [octokit](https://github.com/octokit/octokit.js) from 2.0.10 to 3.1.2. - [Release notes](https://github.com/octokit/octokit.js/releases) - [Commits](https://github.com/octokit/octokit.js/compare/v2.0.10...v3.1.2) --- updated-dependencies: - dependency-name: octokit dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- docs/package.json | 2 +- docs/yarn.lock | 447 ++++++++++++++++++++++------------------------ 2 files changed, 214 insertions(+), 235 deletions(-) diff --git a/docs/package.json b/docs/package.json index 4369703c..e28510ef 100644 --- a/docs/package.json +++ b/docs/package.json @@ -22,7 +22,7 @@ "next": "^13.0.6", "nextra": "2.0.1", "nextra-theme-docs": "2.0.1", - "octokit": "^2.0.10", + "octokit": "^3.1.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-markdown": "^8.0.4", diff --git a/docs/yarn.lock b/docs/yarn.lock index 4c20e0f6..c9b097ab 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -189,145 +189,140 @@ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.1.1.tgz#c209a37da13be27b722f9c40c40ab4b094866244" integrity sha512-mVF0/3/5QAc5EGVnb8ll31nNvf3BWpPY4pBb84tk+BfQglWLqc5AC9q1Ht/YMWiEgs8ALNKEQ3GQnbY0bJF2Gg== -"@octokit/app@^13.0.5": - version "13.1.0" - resolved "https://registry.yarnpkg.com/@octokit/app/-/app-13.1.0.tgz#b9965fc0d913ce731837422c55c9385bef8b2a6c" - integrity sha512-w0DCS/+bvrIL0iva89VSSa9YhIy1YHATSXMYrHQtgsBHpbuAnMn7QEknYhuMn/4h2dGg9cNjU+3XeAF5eyNmEA== - dependencies: - "@octokit/auth-app" "^4.0.0" - "@octokit/auth-unauthenticated" "^3.0.0" - "@octokit/core" "^4.0.0" - "@octokit/oauth-app" "^4.0.7" - "@octokit/plugin-paginate-rest" "^5.0.0" - "@octokit/types" "^8.0.0" - "@octokit/webhooks" "^10.0.0" - -"@octokit/auth-app@^4.0.0": - version "4.0.7" - resolved "https://registry.yarnpkg.com/@octokit/auth-app/-/auth-app-4.0.7.tgz#417c327e6a7ada1e6e9651db681146f8c12728e3" - integrity sha512-hjjVCoI/+1oLminVHJPPexguYb9FP4Q60hEHExgy1uAKMMJ5Zf8iJIeRJlIIqneTb4vt7NvUTEj4YDxBLZ1FLg== - dependencies: - "@octokit/auth-oauth-app" "^5.0.0" - "@octokit/auth-oauth-user" "^2.0.0" - "@octokit/request" "^6.0.0" - "@octokit/request-error" "^3.0.0" - "@octokit/types" "^8.0.0" - "@types/lru-cache" "^5.1.0" +"@octokit/app@^14.0.2": + version "14.0.2" + resolved "https://registry.yarnpkg.com/@octokit/app/-/app-14.0.2.tgz#b47c52020221351fb58640f113eb38b2ad3998fe" + integrity sha512-NCSCktSx+XmjuSUVn2dLfqQ9WIYePGP95SDJs4I9cn/0ZkeXcPkaoCLl64Us3dRKL2ozC7hArwze5Eu+/qt1tg== + dependencies: + "@octokit/auth-app" "^6.0.0" + "@octokit/auth-unauthenticated" "^5.0.0" + "@octokit/core" "^5.0.0" + "@octokit/oauth-app" "^6.0.0" + "@octokit/plugin-paginate-rest" "^9.0.0" + "@octokit/types" "^12.0.0" + "@octokit/webhooks" "^12.0.4" + +"@octokit/auth-app@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-app/-/auth-app-6.0.1.tgz#7137b1af124189a979de6053da5d4c8cdb1fa4e9" + integrity sha512-tjCD4nzQNZgmLH62+PSnTF6eGerisFgV4v6euhqJik6yWV96e1ZiiGj+NXIqbgnpjLmtnBqVUrNyGKu3DoGEGA== + dependencies: + "@octokit/auth-oauth-app" "^7.0.0" + "@octokit/auth-oauth-user" "^4.0.0" + "@octokit/request" "^8.0.2" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" deprecation "^2.3.1" - lru-cache "^6.0.0" - universal-github-app-jwt "^1.0.1" + lru-cache "^10.0.0" + universal-github-app-jwt "^1.1.1" universal-user-agent "^6.0.0" -"@octokit/auth-oauth-app@^5.0.0": - version "5.0.4" - resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-app/-/auth-oauth-app-5.0.4.tgz#ebd9a38f75381093d1a5e08e05b70b94f0918277" - integrity sha512-zlWuii5hAN50vsV6SJC+uIJ7SMhyWjQMEmKJQxkmNDlieE9LjnkZnbOjqRsfcG7VO7WTl4K8ccpo/3A7Kdpmrw== +"@octokit/auth-oauth-app@^7.0.0": + version "7.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-app/-/auth-oauth-app-7.0.1.tgz#30fd8fcb4608ca52c29c265a3fc7032897796c8e" + integrity sha512-RE0KK0DCjCHXHlQBoubwlLijXEKfhMhKm9gO56xYvFmP1QTMb+vvwRPmQLLx0V+5AvV9N9I3lr1WyTzwL3rMDg== dependencies: - "@octokit/auth-oauth-device" "^4.0.0" - "@octokit/auth-oauth-user" "^2.0.0" - "@octokit/request" "^6.0.0" - "@octokit/types" "^8.0.0" + "@octokit/auth-oauth-device" "^6.0.0" + "@octokit/auth-oauth-user" "^4.0.0" + "@octokit/request" "^8.0.2" + "@octokit/types" "^12.0.0" "@types/btoa-lite" "^1.0.0" btoa-lite "^1.0.0" universal-user-agent "^6.0.0" -"@octokit/auth-oauth-device@^4.0.0": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-device/-/auth-oauth-device-4.0.3.tgz#00ce77233517e0d7d39e42a02652f64337d9df81" - integrity sha512-KPTx5nMntKjNZzzltO3X4T68v22rd7Cp/TcLJXQE2U8aXPcZ9LFuww9q9Q5WUNSu3jwi3lRwzfkPguRfz1R8Vg== +"@octokit/auth-oauth-device@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-device/-/auth-oauth-device-6.0.1.tgz#38e5f7f8997c5e8b774f283463ecf4a7e42d7cee" + integrity sha512-yxU0rkL65QkjbqQedgVx3gmW7YM5fF+r5uaSj9tM/cQGVqloXcqP2xK90eTyYvl29arFVCW8Vz4H/t47mL0ELw== dependencies: - "@octokit/oauth-methods" "^2.0.0" - "@octokit/request" "^6.0.0" - "@octokit/types" "^8.0.0" + "@octokit/oauth-methods" "^4.0.0" + "@octokit/request" "^8.0.0" + "@octokit/types" "^12.0.0" universal-user-agent "^6.0.0" -"@octokit/auth-oauth-user@^2.0.0": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-user/-/auth-oauth-user-2.0.4.tgz#88f060ec678d7d493695af8d827e115dd064e212" - integrity sha512-HrbDzTPqz6GcGSOUkR+wSeF3vEqsb9NMsmPja/qqqdiGmlk/Czkxctc3KeWYogHonp62Ml4kjz2VxKawrFsadQ== +"@octokit/auth-oauth-user@^4.0.0": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-oauth-user/-/auth-oauth-user-4.0.1.tgz#c8267883935c83f78318c726ff91d7e98de05517" + integrity sha512-N94wWW09d0hleCnrO5wt5MxekatqEJ4zf+1vSe8MKMrhZ7gAXKFOKrDEZW2INltvBWJCyDUELgGRv8gfErH1Iw== dependencies: - "@octokit/auth-oauth-device" "^4.0.0" - "@octokit/oauth-methods" "^2.0.0" - "@octokit/request" "^6.0.0" - "@octokit/types" "^8.0.0" + "@octokit/auth-oauth-device" "^6.0.0" + "@octokit/oauth-methods" "^4.0.0" + "@octokit/request" "^8.0.2" + "@octokit/types" "^12.0.0" btoa-lite "^1.0.0" universal-user-agent "^6.0.0" -"@octokit/auth-token@^3.0.0": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-3.0.2.tgz#a0fc8de149fd15876e1ac78f6525c1c5ab48435f" - integrity sha512-pq7CwIMV1kmzkFTimdwjAINCXKTajZErLB4wMLYapR2nuB/Jpr66+05wOTZMSCBXP6n4DdDWT2W19Bm17vU69Q== - dependencies: - "@octokit/types" "^8.0.0" - -"@octokit/auth-unauthenticated@^3.0.0": - version "3.0.3" - resolved "https://registry.yarnpkg.com/@octokit/auth-unauthenticated/-/auth-unauthenticated-3.0.3.tgz#2fa91ca84a8c8cec244241c2a13732fc5a404a22" - integrity sha512-IyfLo1T5GmIC9+07hHGlD3gHtZI1Bona8PLhHXUnwcYDuZt0BhjlNJDYMoPG21C4r7v7+ZSxQHBKrGgkxpYb7A== - dependencies: - "@octokit/request-error" "^3.0.0" - "@octokit/types" "^8.0.0" +"@octokit/auth-token@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-4.0.0.tgz#40d203ea827b9f17f42a29c6afb93b7745ef80c7" + integrity sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA== -"@octokit/core@^4.0.0", "@octokit/core@^4.0.4": - version "4.1.0" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-4.1.0.tgz#b6b03a478f1716de92b3f4ec4fd64d05ba5a9251" - integrity sha512-Czz/59VefU+kKDy+ZfDwtOIYIkFjExOKf+HA92aiTZJ6EfWpFzYQWw0l54ji8bVmyhc+mGaLUbSUmXazG7z5OQ== - dependencies: - "@octokit/auth-token" "^3.0.0" - "@octokit/graphql" "^5.0.0" - "@octokit/request" "^6.0.0" - "@octokit/request-error" "^3.0.0" - "@octokit/types" "^8.0.0" +"@octokit/auth-unauthenticated@^5.0.0": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@octokit/auth-unauthenticated/-/auth-unauthenticated-5.0.1.tgz#d8032211728333068b2e07b53997c29e59a03507" + integrity sha512-oxeWzmBFxWd+XolxKTc4zr+h3mt+yofn4r7OfoIkR/Cj/o70eEGmPsFbueyJE2iBAGpjgTnEOKM3pnuEGVmiqg== + dependencies: + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" + +"@octokit/core@^5.0.0": + version "5.0.2" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.0.2.tgz#ae7c5d61fdd98ba348a27c3cc510879a130b1234" + integrity sha512-cZUy1gUvd4vttMic7C0lwPed8IYXWYp8kHIMatyhY8t8n3Cpw2ILczkV5pGMPqef7v0bLo0pOHrEHarsau2Ydg== + dependencies: + "@octokit/auth-token" "^4.0.0" + "@octokit/graphql" "^7.0.0" + "@octokit/request" "^8.0.2" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/endpoint@^7.0.0": - version "7.0.3" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-7.0.3.tgz#0b96035673a9e3bedf8bab8f7335de424a2147ed" - integrity sha512-57gRlb28bwTsdNXq+O3JTQ7ERmBTuik9+LelgcLIVfYwf235VHbN9QNo4kXExtp/h8T423cR5iJThKtFYxC7Lw== +"@octokit/endpoint@^9.0.0": + version "9.0.4" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.4.tgz#8afda5ad1ffc3073d08f2b450964c610b821d1ea" + integrity sha512-DWPLtr1Kz3tv8L0UvXTDP1fNwM0S+z6EJpRcvH66orY6Eld4XBMCSYsaWp4xIm61jTWxK68BrR7ibO+vSDnZqw== dependencies: - "@octokit/types" "^8.0.0" - is-plain-object "^5.0.0" + "@octokit/types" "^12.0.0" universal-user-agent "^6.0.0" -"@octokit/graphql@^5.0.0": - version "5.0.4" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-5.0.4.tgz#519dd5c05123868276f3ae4e50ad565ed7dff8c8" - integrity sha512-amO1M5QUQgYQo09aStR/XO7KAl13xpigcy/kI8/N1PnZYSS69fgte+xA4+c2DISKqUZfsh0wwjc2FaCt99L41A== +"@octokit/graphql@^7.0.0": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-7.0.2.tgz#3df14b9968192f9060d94ed9e3aa9780a76e7f99" + integrity sha512-OJ2iGMtj5Tg3s6RaXH22cJcxXRi7Y3EBqbHTBRq+PQAqfaS8f/236fUrWhfSn8P4jovyzqucxme7/vWSSZBX2Q== dependencies: - "@octokit/request" "^6.0.0" - "@octokit/types" "^8.0.0" + "@octokit/request" "^8.0.1" + "@octokit/types" "^12.0.0" universal-user-agent "^6.0.0" -"@octokit/oauth-app@^4.0.6", "@octokit/oauth-app@^4.0.7": - version "4.2.0" - resolved "https://registry.yarnpkg.com/@octokit/oauth-app/-/oauth-app-4.2.0.tgz#f965496b1d957c3ff0275a5d5233b380181ce72b" - integrity sha512-gyGclT77RQMkVUEW3YBeAKY+LBSc5u3eC9Wn/Uwt3WhuKuu9mrV18EnNpDqmeNll+mdV02yyBROU29Tlili6gg== - dependencies: - "@octokit/auth-oauth-app" "^5.0.0" - "@octokit/auth-oauth-user" "^2.0.0" - "@octokit/auth-unauthenticated" "^3.0.0" - "@octokit/core" "^4.0.0" - "@octokit/oauth-authorization-url" "^5.0.0" - "@octokit/oauth-methods" "^2.0.0" +"@octokit/oauth-app@^6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@octokit/oauth-app/-/oauth-app-6.0.0.tgz#a5c3b7794df4280c6aadbadd843119059d70a2c4" + integrity sha512-bNMkS+vJ6oz2hCyraT9ZfTpAQ8dZNqJJQVNaKjPLx4ue5RZiFdU1YWXguOPR8AaSHS+lKe+lR3abn2siGd+zow== + dependencies: + "@octokit/auth-oauth-app" "^7.0.0" + "@octokit/auth-oauth-user" "^4.0.0" + "@octokit/auth-unauthenticated" "^5.0.0" + "@octokit/core" "^5.0.0" + "@octokit/oauth-authorization-url" "^6.0.2" + "@octokit/oauth-methods" "^4.0.0" "@types/aws-lambda" "^8.10.83" - fromentries "^1.3.1" universal-user-agent "^6.0.0" -"@octokit/oauth-authorization-url@^5.0.0": - version "5.0.0" - resolved "https://registry.yarnpkg.com/@octokit/oauth-authorization-url/-/oauth-authorization-url-5.0.0.tgz#029626ce87f3b31addb98cd0d2355c2381a1c5a1" - integrity sha512-y1WhN+ERDZTh0qZ4SR+zotgsQUE1ysKnvBt1hvDRB2WRzYtVKQjn97HEPzoehh66Fj9LwNdlZh+p6TJatT0zzg== +"@octokit/oauth-authorization-url@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@octokit/oauth-authorization-url/-/oauth-authorization-url-6.0.2.tgz#cc82ca29cc5e339c9921672f39f2b3f5c8eb6ef2" + integrity sha512-CdoJukjXXxqLNK4y/VOiVzQVjibqoj/xHgInekviUJV73y/BSIcwvJ/4aNHPBPKcPWFnd4/lO9uqRV65jXhcLA== -"@octokit/oauth-methods@^2.0.0": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@octokit/oauth-methods/-/oauth-methods-2.0.4.tgz#6abd9593ca7f91fe5068375a363bd70abd5516dc" - integrity sha512-RDSa6XL+5waUVrYSmOlYROtPq0+cfwppP4VaQY/iIei3xlFb0expH6YNsxNrZktcLhJWSpm9uzeom+dQrXlS3A== +"@octokit/oauth-methods@^4.0.0": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@octokit/oauth-methods/-/oauth-methods-4.0.1.tgz#90d22c662387056307778d7e5c4763ff559636c4" + integrity sha512-1NdTGCoBHyD6J0n2WGXg9+yDLZrRNZ0moTEex/LSPr49m530WNKcCfXDghofYptr3st3eTii+EHoG5k/o+vbtw== dependencies: - "@octokit/oauth-authorization-url" "^5.0.0" - "@octokit/request" "^6.0.0" - "@octokit/request-error" "^3.0.0" - "@octokit/types" "^8.0.0" + "@octokit/oauth-authorization-url" "^6.0.2" + "@octokit/request" "^8.0.2" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" btoa-lite "^1.0.0" "@octokit/openapi-types@^14.0.0": @@ -335,58 +330,73 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-14.0.0.tgz#949c5019028c93f189abbc2fb42f333290f7134a" integrity sha512-HNWisMYlR8VCnNurDU6os2ikx0s0VyEjDYHNS/h4cgb8DeOxQ0n72HyinUtdDVxJhFy3FWLGl0DJhfEWk3P5Iw== -"@octokit/plugin-paginate-rest@^5.0.0": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-5.0.1.tgz#93d7e74f1f69d68ba554fa6b888c2a9cf1f99a83" - integrity sha512-7A+rEkS70pH36Z6JivSlR7Zqepz3KVucEFVDnSrgHXzG7WLAzYwcHZbKdfTXHwuTHbkT1vKvz7dHl1+HNf6Qyw== +"@octokit/openapi-types@^19.1.0": + version "19.1.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-19.1.0.tgz#75ec7e64743870fc73e1ab4bc6ec252ecdd624dc" + integrity sha512-6G+ywGClliGQwRsjvqVYpklIfa7oRPA0vyhPQG/1Feh+B+wU0vGH1JiJ5T25d3g1JZYBHzR2qefLi9x8Gt+cpw== + +"@octokit/plugin-paginate-graphql@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-graphql/-/plugin-paginate-graphql-4.0.0.tgz#b26024fa454039c18b948f13bf754ff86b89e8b9" + integrity sha512-7HcYW5tP7/Z6AETAPU14gp5H5KmCPT3hmJrS/5tO7HIgbwenYmgw4OY9Ma54FDySuxMwD+wsJlxtuGWwuZuItA== + +"@octokit/plugin-paginate-rest@^9.0.0": + version "9.1.5" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.1.5.tgz#1705bcef4dcde1f4015ee58a63dc61b68648f480" + integrity sha512-WKTQXxK+bu49qzwv4qKbMMRXej1DU2gq017euWyKVudA6MldaSSQuxtz+vGbhxV4CjxpUxjZu6rM2wfc1FiWVg== dependencies: - "@octokit/types" "^8.0.0" + "@octokit/types" "^12.4.0" -"@octokit/plugin-rest-endpoint-methods@^6.0.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.7.0.tgz#2f6f17f25b6babbc8b41d2bb0a95a8839672ce7c" - integrity sha512-orxQ0fAHA7IpYhG2flD2AygztPlGYNAdlzYz8yrD8NDgelPfOYoRPROfEyIe035PlxvbYrgkfUZIhSBKju/Cvw== +"@octokit/plugin-rest-endpoint-methods@^10.0.0": + version "10.2.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.2.0.tgz#eeaa4de97a2ae26404dea30ce3e17b11928e027c" + integrity sha512-ePbgBMYtGoRNXDyKGvr9cyHjQ163PbwD0y1MkDJCpkO2YH4OeXX40c4wYHKikHGZcpGPbcRLuy0unPUuafco8Q== dependencies: - "@octokit/types" "^8.0.0" - deprecation "^2.3.1" + "@octokit/types" "^12.3.0" -"@octokit/plugin-retry@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@octokit/plugin-retry/-/plugin-retry-4.0.3.tgz#75427ba1ad92afde07af9cb0c5197f214bb036e1" - integrity sha512-tDR+4Cs9GPPNJ7/RjTEq5ty2wqjKe1hRUV7/hch+nORow5LshlHXTT1qfYNsFPw3S9szvFFAfDEFq/xwrEpL7g== +"@octokit/plugin-retry@^6.0.0": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-retry/-/plugin-retry-6.0.1.tgz#3257404f7cc418e1c1f13a7f2012c1db848b7693" + integrity sha512-SKs+Tz9oj0g4p28qkZwl/topGcb0k0qPNX/i7vBKmDsjoeqnVfFUquqrE/O9oJY7+oLzdCtkiWSXLpLjvl6uog== dependencies: - "@octokit/types" "^8.0.0" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" bottleneck "^2.15.3" -"@octokit/plugin-throttling@^4.0.1": - version "4.3.2" - resolved "https://registry.yarnpkg.com/@octokit/plugin-throttling/-/plugin-throttling-4.3.2.tgz#d5eb363d5282c74b2839454a87545c5f90591a80" - integrity sha512-ZaCK599h3tzcoy0Jtdab95jgmD7X9iAk59E2E7hYKCAmnURaI4WpzwL9vckImilybUGrjY1JOWJapDs2N2D3vw== +"@octokit/plugin-throttling@^8.0.0": + version "8.1.3" + resolved "https://registry.yarnpkg.com/@octokit/plugin-throttling/-/plugin-throttling-8.1.3.tgz#7fb0e001c0cb9383c6be07740b8ec326ed990f6b" + integrity sha512-pfyqaqpc0EXh5Cn4HX9lWYsZ4gGbjnSmUILeu4u2gnuM50K/wIk9s1Pxt3lVeVwekmITgN/nJdoh43Ka+vye8A== dependencies: - "@octokit/types" "^8.0.0" + "@octokit/types" "^12.2.0" bottleneck "^2.15.3" -"@octokit/request-error@^3.0.0": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-3.0.2.tgz#f74c0f163d19463b87528efe877216c41d6deb0a" - integrity sha512-WMNOFYrSaX8zXWoJg9u/pKgWPo94JXilMLb2VManNOby9EZxrQaBe/QSC4a1TzpAlpxofg2X/jMnCyZgL6y7eg== +"@octokit/request-error@^5.0.0": + version "5.0.1" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.0.1.tgz#277e3ce3b540b41525e07ba24c5ef5e868a72db9" + integrity sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ== dependencies: - "@octokit/types" "^8.0.0" + "@octokit/types" "^12.0.0" deprecation "^2.0.0" once "^1.4.0" -"@octokit/request@^6.0.0": - version "6.2.2" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-6.2.2.tgz#a2ba5ac22bddd5dcb3f539b618faa05115c5a255" - integrity sha512-6VDqgj0HMc2FUX2awIs+sM6OwLgwHvAi4KCK3mT2H2IKRt6oH9d0fej5LluF5mck1lRR/rFWN0YIDSYXYSylbw== +"@octokit/request@^8.0.0", "@octokit/request@^8.0.1", "@octokit/request@^8.0.2": + version "8.1.6" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.1.6.tgz#a76a859c30421737a3918b40973c2ff369009571" + integrity sha512-YhPaGml3ncZC1NfXpP3WZ7iliL1ap6tLkAp6MvbK2fTTPytzVUyUesBBogcdMm86uRYO5rHaM1xIWxigWZ17MQ== dependencies: - "@octokit/endpoint" "^7.0.0" - "@octokit/request-error" "^3.0.0" - "@octokit/types" "^8.0.0" - is-plain-object "^5.0.0" - node-fetch "^2.6.7" + "@octokit/endpoint" "^9.0.0" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" universal-user-agent "^6.0.0" +"@octokit/types@^12.0.0", "@octokit/types@^12.2.0", "@octokit/types@^12.3.0", "@octokit/types@^12.4.0": + version "12.4.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-12.4.0.tgz#8f97b601e91ce6b9776ed8152217e77a71be7aac" + integrity sha512-FLWs/AvZllw/AGVs+nJ+ELCDZZJk+kY0zMen118xhL2zD0s1etIUHm1odgjP7epxYU1ln7SZxEUWYop5bhsdgQ== + dependencies: + "@octokit/openapi-types" "^19.1.0" + "@octokit/types@^8.0.0": version "8.0.0" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-8.0.0.tgz#93f0b865786c4153f0f6924da067fe0bb7426a9f" @@ -394,24 +404,24 @@ dependencies: "@octokit/openapi-types" "^14.0.0" -"@octokit/webhooks-methods@^3.0.0": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@octokit/webhooks-methods/-/webhooks-methods-3.0.1.tgz#041ed0e5728cc076e375c372dd803ded5905535f" - integrity sha512-XftYVcBxtzC2G05kdBNn9IYLtQ+Cz6ufKkjZd0DU/qGaZEFTPzM2OabXAWG5tvL0q/I+Exio1JnRiPfetiMSEw== - -"@octokit/webhooks-types@6.7.0": - version "6.7.0" - resolved "https://registry.yarnpkg.com/@octokit/webhooks-types/-/webhooks-types-6.7.0.tgz#5fae3f6d92befcb8224a8c19a18d9d90e59f095d" - integrity sha512-bykm7UkSnxmb2uhSfcLM1Pity/LQ6ZBSdzy9HU0vXjR+2g+tzlmRhXb7Go8oj0TlgO+vDrTivGXju6zkzOGKjA== - -"@octokit/webhooks@^10.0.0": - version "10.4.0" - resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-10.4.0.tgz#b844a3a220690b0d104488e8f1229289d5169239" - integrity sha512-BZYBRB8zUm8QJOkpmmg2VWzHq21qVW6vzmZw7gXhoPp/fia1N+HKF/caWyCcKpSE4DYBnPukJ9HtpMcC2GZiRw== - dependencies: - "@octokit/request-error" "^3.0.0" - "@octokit/webhooks-methods" "^3.0.0" - "@octokit/webhooks-types" "6.7.0" +"@octokit/webhooks-methods@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/webhooks-methods/-/webhooks-methods-4.0.0.tgz#d1697930ba3d8e6b6d0f8a2c996bb440d2e1df1b" + integrity sha512-M8mwmTXp+VeolOS/kfRvsDdW+IO0qJ8kYodM/sAysk093q6ApgmBXwK1ZlUvAwXVrp/YVHp6aArj4auAxUAOFw== + +"@octokit/webhooks-types@7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@octokit/webhooks-types/-/webhooks-types-7.1.0.tgz#d533dea253416e02dd6c2bfab25e533295bd5d3f" + integrity sha512-y92CpG4kFFtBBjni8LHoV12IegJ+KFxLgKRengrVjKmGE5XMeCuGvlfRe75lTRrgXaG6XIWJlFpIDTlkoJsU8w== + +"@octokit/webhooks@^12.0.4": + version "12.0.10" + resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-12.0.10.tgz#3dcd3424ae4ff29b62b8fc8408b08c17b8178ece" + integrity sha512-Q8d26l7gZ3L1SSr25NFbbP0B431sovU5r0tIqcvy8Z4PrD1LBv0cJEjvDLOieouzPSTzSzufzRIeXD7S+zAESA== + dependencies: + "@octokit/request-error" "^5.0.0" + "@octokit/webhooks-methods" "^4.0.0" + "@octokit/webhooks-types" "7.1.0" aggregate-error "^3.1.0" "@popperjs/core@^2.11.6": @@ -485,18 +495,13 @@ dependencies: "@types/unist" "*" -"@types/jsonwebtoken@^8.3.3": - version "8.5.9" - resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz#2c064ecb0b3128d837d2764aa0b117b0ff6e4586" - integrity sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg== +"@types/jsonwebtoken@^9.0.0": + version "9.0.5" + resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-9.0.5.tgz#0bd9b841c9e6c5a937c17656e2368f65da025588" + integrity sha512-VRLSGzik+Unrup6BsouBeHsf4d1hOEgYWTm/7Nmw1sXoN1+tRly/Gy/po3yeahnP4jfnQWWAhQAqcNfH7ngOkA== dependencies: "@types/node" "*" -"@types/lru-cache@^5.1.0": - version "5.1.1" - resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.1.tgz#c48c2e27b65d2a153b19bfc1a317e30872e01eef" - integrity sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw== - "@types/mdast@^3.0.0": version "3.0.10" resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.10.tgz#4724244a82a4598884cbbe9bcfd73dff927ee8af" @@ -859,11 +864,6 @@ focus-visible@^5.2.0: resolved "https://registry.yarnpkg.com/focus-visible/-/focus-visible-5.2.0.tgz#3a9e41fccf587bd25dcc2ef045508284f0a4d6b3" integrity sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ== -fromentries@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a" - integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg== - get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -998,11 +998,6 @@ is-plain-obj@^4.0.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0" integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg== -is-plain-object@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" - integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== - is-reference@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-3.0.0.tgz#b1380c03d96ddf7089709781e3208fceb0c92cd6" @@ -1045,10 +1040,10 @@ jsonc-parser@^3.0.0: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== -jsonwebtoken@^8.5.1: - version "8.5.1" - resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" - integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w== +jsonwebtoken@^9.0.0: + version "9.0.2" + resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz#65ff91f4abef1784697d40952bb1998c504caaf3" + integrity sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ== dependencies: jws "^3.2.2" lodash.includes "^4.3.0" @@ -1059,7 +1054,7 @@ jsonwebtoken@^8.5.1: lodash.isstring "^4.0.1" lodash.once "^4.0.0" ms "^2.1.1" - semver "^5.6.0" + semver "^7.5.4" jwa@^1.4.1: version "1.4.1" @@ -1135,6 +1130,11 @@ loose-envify@^1.1.0, loose-envify@^1.4.0: dependencies: js-tokens "^3.0.0 || ^4.0.0" +lru-cache@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.1.0.tgz#2098d41c2dc56500e6c88584aa656c84de7d0484" + integrity sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag== + lru-cache@^4.0.1: version "4.1.5" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" @@ -1801,13 +1801,6 @@ nextra@2.0.1: title "^3.5.3" unist-util-visit "^4.1.1" -node-fetch@^2.6.7: - version "2.6.7" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== - dependencies: - whatwg-url "^5.0.0" - npm-run-path@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" @@ -1820,19 +1813,21 @@ object-assign@^4.1.1: resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -octokit@^2.0.10: - version "2.0.10" - resolved "https://registry.yarnpkg.com/octokit/-/octokit-2.0.10.tgz#e3b991b34fba733ced82b4ddb2444aeeb7da0d2a" - integrity sha512-sI15RZVaV9iyqLLEky4i++tMM48Fo9a80zrpOXMdAtbomznBLDi/moi9mAjJg7Ii+EaSEyaWOVIh3M/Vk/a5mw== - dependencies: - "@octokit/app" "^13.0.5" - "@octokit/core" "^4.0.4" - "@octokit/oauth-app" "^4.0.6" - "@octokit/plugin-paginate-rest" "^5.0.0" - "@octokit/plugin-rest-endpoint-methods" "^6.0.0" - "@octokit/plugin-retry" "^4.0.3" - "@octokit/plugin-throttling" "^4.0.1" - "@octokit/types" "^8.0.0" +octokit@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/octokit/-/octokit-3.1.2.tgz#e574e4f2f5f8712e10412ce81fb56a74c93d4cfa" + integrity sha512-MG5qmrTL5y8KYwFgE1A4JWmgfQBaIETE/lOlfwNYx1QOtCQHGVxkRJmdUJltFc1HVn73d61TlMhMyNTOtMl+ng== + dependencies: + "@octokit/app" "^14.0.2" + "@octokit/core" "^5.0.0" + "@octokit/oauth-app" "^6.0.0" + "@octokit/plugin-paginate-graphql" "^4.0.0" + "@octokit/plugin-paginate-rest" "^9.0.0" + "@octokit/plugin-rest-endpoint-methods" "^10.0.0" + "@octokit/plugin-retry" "^6.0.0" + "@octokit/plugin-throttling" "^8.0.0" + "@octokit/request-error" "^5.0.0" + "@octokit/types" "^12.0.0" once@^1.4.0: version "1.4.0" @@ -2088,10 +2083,12 @@ section-matter@^1.0.0: extend-shallow "^2.0.1" kind-of "^6.0.0" -semver@^5.6.0: - version "5.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== +semver@^7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" shebang-command@^1.2.0: version "1.2.0" @@ -2203,11 +2200,6 @@ titleize@1.0.0: resolved "https://registry.yarnpkg.com/titleize/-/titleize-1.0.0.tgz#7d350722061830ba6617631e0cfd3ea08398d95a" integrity sha512-TARUb7z1pGvlLxgPk++7wJ6aycXF3GJ0sNSBTAsTuJrQG5QuZlkUQP+zl+nbjAh4gMX9yDw9ZYklMd7vAfJKEw== -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - trim-lines@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338" @@ -2343,13 +2335,13 @@ unist-util-visit@^4.0.0, unist-util-visit@^4.1.1: unist-util-is "^5.0.0" unist-util-visit-parents "^5.1.1" -universal-github-app-jwt@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/universal-github-app-jwt/-/universal-github-app-jwt-1.1.0.tgz#0abaa876101cdf1d3e4c546be2768841c0c1b514" - integrity sha512-3b+ocAjjz4JTyqaOT+NNBd5BtTuvJTxWElIoeHSVelUV9J3Jp7avmQTdLKCaoqi/5Ox2o/q+VK19TJ233rVXVQ== +universal-github-app-jwt@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/universal-github-app-jwt/-/universal-github-app-jwt-1.1.1.tgz#d57cee49020662a95ca750a057e758a1a7190e6e" + integrity sha512-G33RTLrIBMFmlDV4u4CBF7dh71eWwykck4XgaxaIVeZKOYZRAAxvcGMRFTUclVY6xoUPQvO4Ne5wKGxYm/Yy9w== dependencies: - "@types/jsonwebtoken" "^8.3.3" - jsonwebtoken "^8.5.1" + "@types/jsonwebtoken" "^9.0.0" + jsonwebtoken "^9.0.0" universal-user-agent@^6.0.0: version "6.0.0" @@ -2402,19 +2394,6 @@ vscode-textmate@5.2.0: resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e" integrity sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ== -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - which@^1.2.9: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" From 14570db67878d0d23cd490320e4cbad4a674f426 Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Wed, 27 Dec 2023 20:34:37 +0530 Subject: [PATCH 2/7] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..8111e042 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag urluploader:$(date +%s) From d2495d0a3060973059cdc320e1d0f4bc2d21d7de Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Wed, 27 Dec 2023 20:59:26 +0530 Subject: [PATCH 3/7] Create docker-publish.yml --- .github/workflows/docker-publish.yml | 97 ++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 00000000..571631a0 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,97 @@ +name: Docker + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +on: + schedule: + - cron: '22 2 * * *' + push: + branches: [ "main" ] + # Publish semver tags as releases. + tags: [ 'v*.*.*' ] + pull_request: + branches: [ "main" ] + +env: + # Use docker.io for Docker Hub if empty + REGISTRY: ghcr.io + # github.repository as / + IMAGE_NAME: ${{ github.repository }} + + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Install the cosign tool except on PR + # https://github.com/sigstore/cosign-installer + - name: Install cosign + if: github.event_name != 'pull_request' + uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1 + with: + cosign-release: 'v2.1.1' + + # Workaround: https://github.com/docker/build-push-action/issues/461 + - name: Setup Docker buildx + uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + # https://github.com/docker/metadata-action + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a + with: + context: . + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max + + + # Sign the resulting Docker image digest except on PRs. + # This will only write to the public Rekor transparency log when the Docker + # repository is public to avoid leaking data. If you would like to publish + # transparency data even for private images, pass --force to cosign below. + # https://github.com/sigstore/cosign + - name: Sign the published Docker image + if: ${{ github.event_name != 'pull_request' }} + env: + # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable + TAGS: ${{ steps.meta.outputs.tags }} + DIGEST: ${{ steps.build-and-push.outputs.digest }} + # This step uses the identity token to provision an ephemeral certificate + # against the sigstore community Fulcio instance. + run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} From c14eb6ae7c514aed183874e934fcfbf3bbdcdce9 Mon Sep 17 00:00:00 2001 From: kalanakt Date: Tue, 9 Jan 2024 20:51:40 +0530 Subject: [PATCH 4/7] fix: e[#126] && d[#111] --- .env.example | 4 ++ .gitignore | 3 + .idea/.gitignore | 3 + .idea/All-Url-Uploader.iml | 15 +++++ .idea/inspectionProfiles/Project_Default.xml | 43 ++++++++++++++ .../inspectionProfiles/profiles_settings.xml | 6 ++ .idea/misc.xml | 10 ++++ .idea/modules.xml | 8 +++ .idea/vcs.xml | 6 ++ All-Url-Uploader.session | Bin 0 -> 28672 bytes Uploader/README.md | 37 ------------ Uploader/button.py | 9 +-- Uploader/callbacks.py | 9 +-- Uploader/commands.py | 7 --- Uploader/dl_button.py | 6 +- Uploader/echo.py | 11 +--- Uploader/functions/help_ytdl.py | 7 ++- Uploader/thumbunali.py | 5 +- Uploader/youtube.py | 55 ++++++++---------- app.json | 12 ---- app.py | 2 + bot.py | 26 ++++++--- Uploader/config.py => config.py | 25 +++----- log.txt | 18 ++++++ requirements.txt | 18 +----- sample_config.py | 50 ---------------- 26 files changed, 183 insertions(+), 212 deletions(-) create mode 100644 .env.example create mode 100644 .idea/.gitignore create mode 100644 .idea/All-Url-Uploader.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 All-Url-Uploader.session delete mode 100644 Uploader/README.md rename Uploader/config.py => config.py (68%) create mode 100644 log.txt delete mode 100644 sample_config.py diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..d1f2e667 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +BOT_TOKEN= +API_ID= +API_HASH= +OWNER_ID= \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4bdcd6bf..e95794e1 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,6 @@ yarn-error.log* .env.test.local .env.production.local .env + +*.session +*.session-journal diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..26d33521 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/All-Url-Uploader.iml b/.idea/All-Url-Uploader.iml new file mode 100644 index 00000000..f35a5644 --- /dev/null +++ b/.idea/All-Url-Uploader.iml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..cb0bc9cb --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,43 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..105ce2da --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..85b31a76 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..457c187d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/All-Url-Uploader.session b/All-Url-Uploader.session new file mode 100644 index 0000000000000000000000000000000000000000..1fcb5639871411f802c8a2a4a54546ad5af7e366 GIT binary patch literal 28672 zcmeI(du&rx90%}wd;6fJqfQ>zIcg4&v6dl5!7YF&-FiE#rGu_>Ad=ekUbnlg5Br!9 zBFNa7iUcr&{i88~KMaW&4T?x2k0=^hKr@Nr1A>ug3=zdm#0SyS`v~1+3I7@3d(!*p zdHl{fpWFU%*0cI00XZv?Cz9!SG)rbPw=gWrEF^?sm?`wI&_hoSdSlez&?{STKicgS zW>)K`MYPm1c0c2oSoB-bj-tnkjP_UPTOWM!X7U*EyO2Ebkg^)mGk+up7jk9ENzD)>vV`d9KmuJ^;azd0=%Hm3GhN+fh zLW(4E@g^y)49%iV&>!>)OKF&^RV4a6h^w%@`w^3wznf<>Bl^f?q;w)0mz4PCQR3^B z3S#S7Zm-eIm+|cK5piWviD()nA|<#oPFZv>;mmw#DZ4rwZEBY~=;M`>3GHIkpQ@)i zAP_Cn=2ARW8{L>J4*3^(Ld(d*!ZMq?(`m5qJkNHOC_$CsC?{@MKqX5HM@Lndv`1GM zcBay8G!~OGnMg}C(~_^R)lqUag@Y8a-Z=W0-5ETUQI11X@_ zj8d{zXE={UzqRqCC=FMO=CUo3Hfa?h)q%QdHA4QItpe$t{1;K}VptDyCeoD5<{N6+ zHg|q)&W`(mp)Vu|KmY;|fB*y_009U<00Izz!1XTBImu*YxG`OJqsh9WXYld5ny+6U znEq4A!9&jR?Z&2IPK(emo?P0t$SPS zGIPzmwp;KN`1p7)lxW?$ZEyldZ^t&M-34$eF{?)Fu^1NUB-n2Ni+U!7aC_`ctd zo$Q->%r3nw-pR0wBofK5{|%1ajN>#tAwd8F5P$##AOHafKmY;|fB*y_@c#=`^q%WI z6tOVo@l}j*V9n;fOSjI=(qHtWVn;L)lXB_yT&g`86{R%Iq-*@?le@m({Ru}KOyn8k z_Ad|1PTx>>euqVyoXAz?Ybd|}JN{FAQ ? -
-

How to edit config.py

- -

Here is sample edited config.py for deploy to Locally/VPS. copy and past and edit with your variables

-

Go To sample_config.py and edit with your veriable

- -
-# sample config file 
-
-class Config(object):
-
-    # get a token from @BotFather
-    BOT_TOKEN = "5568340867:AAGuPzlgwqgHtgqmdL7yt12PRLrXFjt98Zg"
-    
-    # Get these values from my.telegram.org
-    API_ID = 12345
-    API_HASH = "uPzlgwqgHtgqmdL7yt12PRLrXFj"
-    
-    # No need to change
-    DOWNLOAD_LOCATION = "./DOWNLOADS"
-    ADL_BOT_RQ = {}
-    CHUNK_SIZE = 128
-    TG_MAX_FILE_SIZE = 4194304000
-    HTTP_PROXY = ""
-    PROCESS_MAX_TIMEOUT = 3700
-    
-    # TG Ids
-    LOG_CHANNEL = -1001798969594
-    OWNER_ID = 1288398723
-    
-    # bot username without @
-    BOT_USERNAME = "AdvanceUrlUploaderBot"
-    
-    # auth users
-    AUTH_USERS = [OWNER_ID, 1288398722, 1288398724, 1288398725]
-
diff --git a/Uploader/button.py b/Uploader/button.py index 80f98a14..9f42d16f 100644 --- a/Uploader/button.py +++ b/Uploader/button.py @@ -25,17 +25,10 @@ import time import shutil import asyncio -import logging -import subprocess - -from pyrogram.types import * from datetime import datetime from Uploader.utitles import * -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config +from config import Config from Uploader.script import Translation from Uploader.functions.ran_text import random_char from Uploader.functions.display_progress import progress_for_pyrogram, humanbytes diff --git a/Uploader/callbacks.py b/Uploader/callbacks.py index 1719c580..c8d2a651 100644 --- a/Uploader/callbacks.py +++ b/Uploader/callbacks.py @@ -20,17 +20,10 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE -import os -from Uploader.functions.display_progress import progress_for_pyrogram, humanbytes -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config from Uploader.dl_button import ddl_call_back from Uploader.button import youtube_dl_call_back from Uploader.script import Translation -from pyrogram import Client, types -from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton +from pyrogram import Client import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') diff --git a/Uploader/commands.py b/Uploader/commands.py index 72bcac18..89990409 100644 --- a/Uploader/commands.py +++ b/Uploader/commands.py @@ -20,17 +20,10 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE -import os - from pyrogram import Client, filters from pyrogram.types import Message from Uploader.script import Translation -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config - @Client.on_message( filters.command("start") & filters.private, diff --git a/Uploader/dl_button.py b/Uploader/dl_button.py index aded19aa..003ee121 100644 --- a/Uploader/dl_button.py +++ b/Uploader/dl_button.py @@ -24,17 +24,13 @@ import time import aiohttp import asyncio -import logging from datetime import datetime from Uploader.functions.display_progress import progress_for_pyrogram, humanbytes, TimeFormatter from Uploader.utitles import * from Uploader.script import Translation -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config +from config import Config logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') diff --git a/Uploader/echo.py b/Uploader/echo.py index 2461f040..e3e8d505 100644 --- a/Uploader/echo.py +++ b/Uploader/echo.py @@ -20,34 +20,25 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE -import os import time import json import asyncio import logging -from opencc import OpenCC - from pyrogram.types import Thumbnail from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config +from config import Config from Uploader.script import Translation from Uploader.functions.ran_text import random_char from Uploader.functions.display_progress import humanbytes -from Uploader.functions.display_progress import humanbytes logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) logging.getLogger("pyrogram").setLevel(logging.WARNING) -s2tw = OpenCC('s2tw.json').convert - @Client.on_message(filters.private & filters.regex(pattern=".*http.*")) async def echo(bot, update): diff --git a/Uploader/functions/help_ytdl.py b/Uploader/functions/help_ytdl.py index b5f1c3aa..849e3e5a 100644 --- a/Uploader/functions/help_ytdl.py +++ b/Uploader/functions/help_ytdl.py @@ -21,8 +21,6 @@ # SOFTWARE import os -import time -import requests import logging from urllib.parse import urlparse @@ -39,6 +37,9 @@ def get_file_extension_from_url(url): def get_resolution(info_dict): + width = 0 + height = 0 + if {"width", "height"} <= info_dict.keys(): width = int(info_dict['width']) height = int(info_dict['height']) @@ -58,4 +59,4 @@ def get_resolution(info_dict): elif info_dict['height'] == 240: width = 426 height = 240 - return (width, height) + return width, height diff --git a/Uploader/thumbunali.py b/Uploader/thumbunali.py index 86cb6504..28fbf709 100644 --- a/Uploader/thumbunali.py +++ b/Uploader/thumbunali.py @@ -24,10 +24,7 @@ from pyrogram import Client, filters -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config +from config import Config @Client.on_message(filters.photo & filters.incoming & filters.private) diff --git a/Uploader/youtube.py b/Uploader/youtube.py index d1f65039..031362b2 100644 --- a/Uploader/youtube.py +++ b/Uploader/youtube.py @@ -21,25 +21,18 @@ # SOFTWARE import os -from urllib.parse import urlparse -import wget import asyncio -from opencc import OpenCC from youtube_dl import YoutubeDL -from pyrogram import Client, filters, enums +from pyrogram import enums from pyrogram.types import Message from pyrogram import Client, filters -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config +from config import Config from Uploader.functions.help_ytdl import get_file_extension_from_url, get_resolution -YTDL_REGEX = (r"^((?:https?:)?\/\/)") -s2tw = OpenCC('s2tw.json').convert +YTDL_REGEX = r"^((?:https?:)?\/\/)" @Client.on_callback_query(filters.regex("^ytdl_audio$")) @@ -84,16 +77,35 @@ async def send_audio(message: Message, info_dict, audio_file): thumb = download_location if os.path.isfile( download_location) else None webpage_url = info_dict['webpage_url'] - title = s2tw(info_dict['title']) + title = info_dict['title'] or '' caption = f'{title}' duration = int(float(info_dict['duration'])) - performer = s2tw(info_dict['uploader']) + performer = info_dict['uploader'] or '' await message.reply_audio(audio_file, caption=caption, duration=duration, performer=performer, title=title, parse_mode=enums.ParseMode.HTML, thumb=thumb) os.remove(audio_file) os.remove(thumbnail_file) +async def send_video(message: Message, info_dict, video_file): + basename = video_file.rsplit(".", 1)[-2] + thumbnail_url = info_dict['thumbnail'] + thumbnail_file = f"{basename}.{get_file_extension_from_url(thumbnail_url)}" + download_location = f"{Config.DOWNLOAD_LOCATION}/{message.from_user.id}.jpg" + thumb = download_location if os.path.isfile( + download_location) else None + webpage_url = info_dict['webpage_url'] + title = info_dict['title'] or '' + caption = f'{title}' + duration = int(float(info_dict['duration'])) + width, height = get_resolution(info_dict) + await message.reply_video(video_file, caption=caption, duration=duration, width=width, height=height, + parse_mode=enums.ParseMode.HTML, thumb=thumb) + + os.remove(video_file) + os.remove(thumbnail_file) + + @Client.on_callback_query(filters.regex("^ytdl_video$")) async def callback_query_ytdl_video(_, callback_query): try: @@ -123,21 +135,4 @@ async def callback_query_ytdl_video(_, callback_query): except Exception as e: await message.reply_text(e) await callback_query.message.reply_to_message.delete() - await callback_query.message.delete() - - async def send_video(message: Message, info_dict, video_file): - basename = video_file.rsplit(".", 1)[-2] - thumbnail_url = info_dict['thumbnail'] - thumbnail_file = f"{basename}.{get_file_extension_from_url(thumbnail_url)}" - download_location = f"{Config.DOWNLOAD_LOCATION}/{message.from_user.id}.jpg" - thumb = download_location if os.path.isfile( - download_location) else None - webpage_url = info_dict['webpage_url'] - title = s2tw(info_dict['title']) - caption = f'{title}' - duration = int(float(info_dict['duration'])) - width, height = get_resolution(info_dict) - await message.reply_video(video_file, caption=caption, duration=duration, width=width, height=height, parse_mode=enums.ParseMode.HTML, thumb=thumb) - - os.remove(video_file) - os.remove(thumbnail_file) + await callback_query.message.delete() \ No newline at end of file diff --git a/app.json b/app.json index e92c3d0d..35059adc 100644 --- a/app.json +++ b/app.json @@ -15,10 +15,6 @@ "website": "kalanakt.github.io/projects/telegram/all-url-uploader ", "repository": "https://github.com/kalanakt/All-Url-Uploader", "env": { - "WEBHOOK": { - "description": "Don't Need To change - Setting this to True when in env mode", - "value": "True" - }, "BOT_TOKEN": { "description": "Your bot token, as a string.", "value": "" @@ -31,17 +27,9 @@ "description": "Get this value from https://my.telegram.org", "value": "" }, - "LOG_CHANNEL": { - "description": "Your Any Own Private Channel ID Where Your Bot As Admin With Full Permission", - "value": "" - }, "OWNER_ID": { "description": "Your Telegram ID For Broadcast", "value": "12345678" - }, - "BOT_USERNAME": { - "description": "Your Bot Username Without @", - "value": "" } }, "addons": [ diff --git a/app.py b/app.py index cb89d57b..78fa71aa 100644 --- a/app.py +++ b/app.py @@ -1,6 +1,8 @@ from flask import Flask + app = Flask(__name__) + @app.route('/') def hello_world(): return 'Hello from Koyeb' diff --git a/bot.py b/bot.py index c483aeb7..9f616b20 100644 --- a/bot.py +++ b/bot.py @@ -25,11 +25,7 @@ from pyrogram.raw.all import layer from pyrogram import Client, idle, __version__ - -if bool(os.environ.get("WEBHOOK")): - from Uploader.config import Config -else: - from sample_config import Config +from config import Config logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') @@ -38,7 +34,20 @@ logging.getLogger("pyrogram").setLevel(logging.WARNING) if not os.path.isdir(Config.DOWNLOAD_LOCATION): - os.makedirs(Config.DOWNLOAD_LOCATION) + os.makedirs(Config.DOWNLOAD_LOCATION) + +if not Config.BOT_TOKEN: + logger.error("Please set BOT_TOKEN in config.py or as env var") + quit(1) + +if not Config.API_ID: + logger.error("Please set API_ID in config.py or as env var") + quit(1) + +if not Config.API_HASH: + logger.error("Please set API_HASH in config.py or as env var") + quit(1) + bot = Client( 'All-Url-Uploader', @@ -50,6 +59,9 @@ ) bot.start() +logger.info("Bot has started.") +logger.info(f"**Bot Started**\n\n**Pyrogram Version:** `{__version__}`\n**Layer:** `{layer}`") +logger.info("Developed by github.com/kalanakt Sponsored by www.netronk.com") idle() bot.stop() -logger.info("Bot Stoped ;)") +logger.info("Bot Stopped ;)") diff --git a/Uploader/config.py b/config.py similarity index 68% rename from Uploader/config.py rename to config.py index e97d8fce..cb9fe22d 100644 --- a/Uploader/config.py +++ b/config.py @@ -21,7 +21,7 @@ # SOFTWARE import os - +from dotenv import load_dotenv import logging logging.basicConfig( @@ -31,13 +31,14 @@ level=logging.INFO ) +load_dotenv() + class Config(object): - WEBHOOK = os.environ.get("BOT_TOKEN", False) # Get a token from @BotFather - BOT_TOKEN = os.environ.get("BOT_TOKEN", "") + BOT_TOKEN = os.environ.get("BOT_TOKEN") # The Telegram API things - API_ID = int(os.environ.get("API_ID", 12345)) + API_ID = os.environ.get("API_ID") API_HASH = os.environ.get("API_HASH") # Get these values from my.telegram.org # Array to store users who are authorized to use the bot @@ -45,28 +46,20 @@ class Config(object): # File /video download location DOWNLOAD_LOCATION = "./DOWNLOADS" - MEGA_EMAIL = os.environ.get("MEGA_EMAIL", "None") - # If deploying on vps edit the above value as example := Mega_email = "Your-Mega_email-inside-inverted-commas." - - # This is not necessary! Enter your mega password only if you have a mega.nz account with pro/business features. - MEGA_PASSWORD = os.environ.get("MEGA_PASSWORD", "None") - # If deploying on vps edit the above value as example := Mega_password = "Your-Mega_password-inside-inverted-commas." # Telegram maximum file upload size TG_MAX_FILE_SIZE = 4194304000 - # Chunk size that should be used with requests + # Chunk size that should be used with requests : default is 128KB CHUNK_SIZE = int(os.environ.get("CHUNK_SIZE", 128)) # Proxy for accessing youtube-dl in GeoRestricted Areas # Get your own proxy from https://github.com/rg3/youtube-dl/issues/1091#issuecomment-230163061 HTTP_PROXY = os.environ.get("HTTP_PROXY", "") - # Set timeout for subprcess + # Set timeout for subprocess PROCESS_MAX_TIMEOUT = 3700 - LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", -100)) - OWNER_ID = int(os.environ.get("OWNER_ID", "12356")) - BOT_USERNAME = os.environ.get("BOT_USERNAME", "") + OWNER_ID = os.environ.get("OWNER_ID") ADL_BOT_RQ = {} AUTH_USERS = list({int(x) - for x in os.environ.get("AUTH_USERS", "0").split()}) + for x in os.environ.get("AUTH_USERS", "0").split()}) AUTH_USERS.append(OWNER_ID) diff --git a/log.txt b/log.txt new file mode 100644 index 00000000..4a7f064a --- /dev/null +++ b/log.txt @@ -0,0 +1,18 @@ +__main__ - ERROR - Please set BOT_TOKEN in config.py or as env var +__main__ - ERROR - Please set BOT_TOKEN in config.py or as env var +__main__ - INFO - Bot has started. +__main__ - INFO - **Bot Started** + +**Pyrogram Version:** `2.0.106` +**Layer:** `158` +__main__ - INFO - Developed by github.com/kalanakt Sponsored by www.netronk.com +root - INFO - Stop signal received (SIGINT). Exiting... +__main__ - INFO - Bot Stopped ;) +__main__ - INFO - Bot has started. +__main__ - INFO - **Bot Started** + +**Pyrogram Version:** `2.0.106` +**Layer:** `158` +__main__ - INFO - Developed by github.com/kalanakt Sponsored by www.netronk.com +root - INFO - Stop signal received (SIGINT). Exiting... +__main__ - INFO - Bot Stopped ;) diff --git a/requirements.txt b/requirements.txt index 54de003e..2e503ca7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,26 +1,14 @@ aiohttp -beautifulsoup4 hachoir -numpy Pillow -pyrogram==2.0.43 +pyrogram requests tgcrypto -olefile -motor -pymongo -dnspython -psutil +python-dotenv loggers -filetype -tldextract -aiofiles -pyromod yt-dlp -filesplit==4.0.0 -mega.py -opencc wget youtube_dl Flask==2.3.2 gunicorn==20.1.0 +sent diff --git a/sample_config.py b/sample_config.py deleted file mode 100644 index 0341554d..00000000 --- a/sample_config.py +++ /dev/null @@ -1,50 +0,0 @@ -# MIT License - -# Copyright (c) 2022 Hash Minner - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: - -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. - -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE - -# edit this file with your veriable if you'r deploy bot via locally | vps - -class Config(object): - - # get a token from @BotFather - BOT_TOKEN = "" - - # Get these values from my.telegram.org - API_ID = 1234567 - API_HASH = "" - - # No need to change - DOWNLOAD_LOCATION = "./DOWNLOADS" - ADL_BOT_RQ = {} - CHUNK_SIZE = 128 - TG_MAX_FILE_SIZE = 4194304000 - HTTP_PROXY = "" - PROCESS_MAX_TIMEOUT = 3700 - - # TG Ids - LOG_CHANNEL = -1007119867241 - OWNER_ID = 1288398723 - - # bot username without @ - BOT_USERNAME = "AdvanceUrlUploaderBot" - - # auth users - AUTH_USERS = [OWNER_ID] From bfff2a2c7e61287cef1cfe675f8ac78c7725312a Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Wed, 10 Jan 2024 01:49:35 +0530 Subject: [PATCH 5/7] Delete All-Url-Uploader.session --- All-Url-Uploader.session | Bin 28672 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 All-Url-Uploader.session diff --git a/All-Url-Uploader.session b/All-Url-Uploader.session deleted file mode 100644 index 1fcb5639871411f802c8a2a4a54546ad5af7e366..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28672 zcmeI(du&rx90%}wd;6fJqfQ>zIcg4&v6dl5!7YF&-FiE#rGu_>Ad=ekUbnlg5Br!9 zBFNa7iUcr&{i88~KMaW&4T?x2k0=^hKr@Nr1A>ug3=zdm#0SyS`v~1+3I7@3d(!*p zdHl{fpWFU%*0cI00XZv?Cz9!SG)rbPw=gWrEF^?sm?`wI&_hoSdSlez&?{STKicgS zW>)K`MYPm1c0c2oSoB-bj-tnkjP_UPTOWM!X7U*EyO2Ebkg^)mGk+up7jk9ENzD)>vV`d9KmuJ^;azd0=%Hm3GhN+fh zLW(4E@g^y)49%iV&>!>)OKF&^RV4a6h^w%@`w^3wznf<>Bl^f?q;w)0mz4PCQR3^B z3S#S7Zm-eIm+|cK5piWviD()nA|<#oPFZv>;mmw#DZ4rwZEBY~=;M`>3GHIkpQ@)i zAP_Cn=2ARW8{L>J4*3^(Ld(d*!ZMq?(`m5qJkNHOC_$CsC?{@MKqX5HM@Lndv`1GM zcBay8G!~OGnMg}C(~_^R)lqUag@Y8a-Z=W0-5ETUQI11X@_ zj8d{zXE={UzqRqCC=FMO=CUo3Hfa?h)q%QdHA4QItpe$t{1;K}VptDyCeoD5<{N6+ zHg|q)&W`(mp)Vu|KmY;|fB*y_009U<00Izz!1XTBImu*YxG`OJqsh9WXYld5ny+6U znEq4A!9&jR?Z&2IPK(emo?P0t$SPS zGIPzmwp;KN`1p7)lxW?$ZEyldZ^t&M-34$eF{?)Fu^1NUB-n2Ni+U!7aC_`ctd zo$Q->%r3nw-pR0wBofK5{|%1ajN>#tAwd8F5P$##AOHafKmY;|fB*y_@c#=`^q%WI z6tOVo@l}j*V9n;fOSjI=(qHtWVn;L)lXB_yT&g`86{R%Iq-*@?le@m({Ru}KOyn8k z_Ad|1PTx>>euqVyoXAz?Ybd|}JN{ Date: Wed, 10 Jan 2024 01:49:52 +0530 Subject: [PATCH 6/7] Delete log.txt --- log.txt | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 log.txt diff --git a/log.txt b/log.txt deleted file mode 100644 index 4a7f064a..00000000 --- a/log.txt +++ /dev/null @@ -1,18 +0,0 @@ -__main__ - ERROR - Please set BOT_TOKEN in config.py or as env var -__main__ - ERROR - Please set BOT_TOKEN in config.py or as env var -__main__ - INFO - Bot has started. -__main__ - INFO - **Bot Started** - -**Pyrogram Version:** `2.0.106` -**Layer:** `158` -__main__ - INFO - Developed by github.com/kalanakt Sponsored by www.netronk.com -root - INFO - Stop signal received (SIGINT). Exiting... -__main__ - INFO - Bot Stopped ;) -__main__ - INFO - Bot has started. -__main__ - INFO - **Bot Started** - -**Pyrogram Version:** `2.0.106` -**Layer:** `158` -__main__ - INFO - Developed by github.com/kalanakt Sponsored by www.netronk.com -root - INFO - Stop signal received (SIGINT). Exiting... -__main__ - INFO - Bot Stopped ;) From f75c8f1388a2a2347837938db0632038c2e6c3fb Mon Sep 17 00:00:00 2001 From: kalana kithmina Date: Wed, 10 Jan 2024 01:51:10 +0530 Subject: [PATCH 7/7] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 00000000..383e65cd --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py')