From 79630124d3d23ca86ea6c9f5160cca5c4449cfcc Mon Sep 17 00:00:00 2001 From: soonnae Date: Sat, 19 Jul 2025 18:25:40 +0900 Subject: [PATCH 1/3] [Autofic] Create package.json and CI workflow --- .github/workflows/pr_notify.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pr_notify.yml diff --git a/.github/workflows/pr_notify.yml b/.github/workflows/pr_notify.yml new file mode 100644 index 0000000..2b34036 --- /dev/null +++ b/.github/workflows/pr_notify.yml @@ -0,0 +1,20 @@ +name: PR Notifier + +on: + pull_request: + types: [opened, reopened, closed] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Notify Discord + env: + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} + run: | + curl -H "Content-Type: application/json" -d '{"content": "🔔 Pull Request [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) by ${{ github.event.pull_request.user.login }} - ${{ github.event.action }}"}' $DISCORD_WEBHOOK_URL + - name: Notify Slack + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -H "Content-Type: application/json" -d '{"text": ":bell: Pull Request <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}> by ${{ github.event.pull_request.user.login }} - ${{ github.event.action }}"}' $SLACK_WEBHOOK_URL From aeba6e6d568f083a72efe8b921751e15194698ec Mon Sep 17 00:00:00 2001 From: soonnae Date: Sat, 19 Jul 2025 18:25:43 +0900 Subject: [PATCH 2/3] [Autofic] 3 malicious code detected!! --- Funds/Costs.js | 6 +++--- Funds/Earnings.js | 6 +++--- Funds/Login.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Funds/Costs.js b/Funds/Costs.js index 7478ff0..5ffadb0 100644 --- a/Funds/Costs.js +++ b/Funds/Costs.js @@ -73,7 +73,7 @@ export default function Costs() { const getData = () => { setIsLoading(true) - let URL = 'http://127.0.0.1:8000/costs' + let URL = 'https://127.0.0.1:8000/costs' fetch(URL, { headers: { 'Token': token @@ -94,7 +94,7 @@ export default function Costs() { }) } - fetch('http://127.0.0.1:8000/costs/'+id, requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/costs/'+id, requestOptions).then((res) => { return res.json(); }).then((res) => { getData() @@ -118,7 +118,7 @@ export default function Costs() { }) } if (currentAmount !== '') { - fetch('http://127.0.0.1:8000/costs', requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/costs', requestOptions).then((res) => { return res.json(); }).then((res) => { getData() diff --git a/Funds/Earnings.js b/Funds/Earnings.js index 5d47c7e..e0e07b3 100644 --- a/Funds/Earnings.js +++ b/Funds/Earnings.js @@ -73,7 +73,7 @@ export default function Earnings() { const getData = () => { setIsLoading(true) - let URL = 'http://127.0.0.1:8000/earnings' + let URL = 'https://127.0.0.1:8000/earnings' fetch(URL, { headers: { 'Token': token @@ -94,7 +94,7 @@ export default function Earnings() { }) } - fetch('http://127.0.0.1:8000/earnings/'+id, requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/earnings/'+id, requestOptions).then((res) => { return res.json(); }).then((res) => { getData() @@ -118,7 +118,7 @@ export default function Earnings() { }) } if (currentAmount !== '') { - fetch('http://127.0.0.1:8000/earnings', requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/earnings', requestOptions).then((res) => { return res.json(); }).then((res) => { getData() diff --git a/Funds/Login.js b/Funds/Login.js index e2bebb8..198dcbb 100644 --- a/Funds/Login.js +++ b/Funds/Login.js @@ -34,7 +34,7 @@ export default function Earnings() { }) } - fetch('http://127.0.0.1:8000/login', requestOptions).then((res) => { + fetch('https://127.0.0.1:8000/login', requestOptions).then((res) => { return res.json() }).then((res) => { if (res !== '' && res !== 'error') { From 58e53d7d7287fe10be6f6d53579dc59703f7a7bb Mon Sep 17 00:00:00 2001 From: soonnae Date: Sat, 19 Jul 2025 18:25:58 +0900 Subject: [PATCH 3/3] chore: remove CI workflow before upstream PR --- .github/workflows/pr_notify.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/pr_notify.yml diff --git a/.github/workflows/pr_notify.yml b/.github/workflows/pr_notify.yml deleted file mode 100644 index 2b34036..0000000 --- a/.github/workflows/pr_notify.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: PR Notifier - -on: - pull_request: - types: [opened, reopened, closed] - -jobs: - notify: - runs-on: ubuntu-latest - steps: - - name: Notify Discord - env: - DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - run: | - curl -H "Content-Type: application/json" -d '{"content": "🔔 Pull Request [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) by ${{ github.event.pull_request.user.login }} - ${{ github.event.action }}"}' $DISCORD_WEBHOOK_URL - - name: Notify Slack - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - run: | - curl -H "Content-Type: application/json" -d '{"text": ":bell: Pull Request <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}> by ${{ github.event.pull_request.user.login }} - ${{ github.event.action }}"}' $SLACK_WEBHOOK_URL