From 1cbffabe671e1ed89a7b117a4cf3774359b6532c Mon Sep 17 00:00:00 2001 From: JungYunji Date: Fri, 25 Jul 2025 16:40:42 +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 e65fec64f6bee74f8981109a60a4c20296ec2e98 Mon Sep 17 00:00:00 2001 From: JungYunji Date: Fri, 25 Jul 2025 16:40:48 +0900 Subject: [PATCH 2/3] [Autofic] 3 malicious code detected!! --- example/image-event/src/index.js | 2 ++ example/web/src/app.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/example/image-event/src/index.js b/example/image-event/src/index.js index 2ad7b48..43158ce 100644 --- a/example/image-event/src/index.js +++ b/example/image-event/src/index.js @@ -1,6 +1,8 @@ const express = require('express') const app = express() +app.disable('x-powered-by') // Disable X-Powered-By header + app.use(express.json()) app.use(express.urlencoded({ extended: true })) diff --git a/example/web/src/app.js b/example/web/src/app.js index 6da66f2..80d1799 100644 --- a/example/web/src/app.js +++ b/example/web/src/app.js @@ -1,6 +1,8 @@ const express = require('express') const app = express() +app.disable('x-powered-by') // Disable the X-Powered-By header + app.use(express.json()) app.use(express.urlencoded({ extended: true })) From 1406f704b937c4d62d73ed34d64fc38ae6f48cbd Mon Sep 17 00:00:00 2001 From: JungYunji Date: Fri, 25 Jul 2025 16:41:07 +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