Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: expand workflow to prs #523

Merged
merged 3 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: Ads - Triage OWASP Top 10 LLM Apps Issues
name: Ads - Triage OWASP Top 10 LLM Apps Issues and PRs

on:
issues:
types: [opened, labeled, reopened]
types:
- opened
- labeled
- reopened
pull_request:
types:
- opened
- labeled
- reopened

env:
BOARD_NAME: "OWASP Top 10 for LLM Applications"
Expand Down Expand Up @@ -39,12 +47,22 @@ jobs:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting! Please ensure labels are applied appropriately to the issue so that the workflow automation can triage this to the correct member of the core team'
})
const eventName = context.eventName;
if (eventName === 'issues') {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for reporting! Please ensure labels are applied appropriately so that the workflow automation can triage this to the assigned member of the OWASP core team'
});
} else if (eventName === 'pull_request' && context.payload.action === 'opened') {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thanks for your pull request! Please ensure appropriate labels are applied for review routing.'
});
}

triage:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# Shared Community Files and Areas:
# TBC

## Either Ads or Steve can approve changes to CODEOWNERS:
## Either Ads or Steve can approve changes to CODEOWNERS or github:
CODEOWNERS @GangGreenTemperTatum @virtualsteve-star
.github/ @GangGreenTemperTatum @virtualsteve-star

## Data Gathering
data_gathering/* @emmanuelgjr @GangGreenTemperTatum
Expand Down
Loading