From 8cc2c7f814657c51641e28533f26a3da848855ef Mon Sep 17 00:00:00 2001 From: BoondockTaints Date: Sun, 2 Nov 2025 10:58:59 -0500 Subject: [PATCH 1/3] Add GitHub Actions workflow for greetings --- .github/workflows/greetings.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..4677434 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Message that will be displayed on users' first issue" + pr-message: "Message that will be displayed on users' first pull request" From 0591c6b37affe17997efc95b9a498d2c926dece0 Mon Sep 17 00:00:00 2001 From: BoondockTaints Date: Sun, 2 Nov 2025 11:14:06 -0500 Subject: [PATCH 2/3] Fix SAST workflow permissions for PR/issue commenting --- .github/workflows/sast-scanning.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sast-scanning.yml b/.github/workflows/sast-scanning.yml index f1c4cab..69d65c6 100644 --- a/.github/workflows/sast-scanning.yml +++ b/.github/workflows/sast-scanning.yml @@ -663,6 +663,8 @@ jobs: contents: read security-events: write actions: read + issues: write + pull-requests: write steps: - name: Download all SAST artifacts From aca97fee35f7b034f99aabb401189fe34f0e02c0 Mon Sep 17 00:00:00 2001 From: BoondockTaints Date: Sun, 2 Nov 2025 11:25:11 -0500 Subject: [PATCH 3/3] Fix greetings.yml syntax - add missing jobs section and job definition --- .github/workflows/greetings.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 4677434..95572eb 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -1,13 +1,18 @@ name: Greetings -on: [pull_request_target, issues] +on: + pull_request_target: + types: [opened] + issues: + types: [opened] + +permissions: + issues: write + pull-requests: write jobs: greeting: runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write steps: - uses: actions/first-interaction@v1 with: