fix permissions

This commit is contained in:
velaraptor-runpod
2026-04-30 20:00:48 -05:00
parent 5b29643799
commit 04b342c675
2 changed files with 8 additions and 19 deletions
+4 -19
View File
@@ -1,4 +1,4 @@
name: Slack PR and Issue Notifications name: Slack PR Notifications
on: on:
pull_request: pull_request:
@@ -6,6 +6,9 @@ on:
issues: issues:
types: [opened] types: [opened]
permissions:
contents: read
jobs: jobs:
notify: notify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -36,21 +39,3 @@ jobs:
} }
] ]
}' }'
- name: Notify Slack - New Issue
if: github.event_name == 'issues'
run: |
curl -sf -X POST "${{ secrets.SLACK_WEBHOOK_URL }}" \
-H "Content-Type: application/json" \
-d '{
"text": ":bug: New issue in worker-vllm: *${{ github.event.issue.title }}*",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":bug: *New Issue — worker-vllm*\n*<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>*\nOpened by *${{ github.event.issue.user.login }}*"
}
}
]
}'
+4
View File
@@ -5,6 +5,10 @@ on:
- cron: '0 0 * * *' # Every day at midnight - cron: '0 0 * * *' # Every day at midnight
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
check-vllm-release: check-vllm-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest