Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
fixed the permission and proper events, this events changes might
led to security concerns. But for as of now, this might resolve
the issue of workflow not working properly for the PRs made from
forked repos.
  • Loading branch information
iamwatchdogs committed Oct 18, 2024
1 parent 5bc3f94 commit 8c1cf5f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/auto-assigner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ name: Auto Assign
on:
pull_request:
types: [opened, ready_for_review]
pull_request_target:
types: [opened, ready_for_review]
issues:
types: [opened]

permissions:
issues: write
pull-requests: write

jobs:
auto-assign:
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/auto-commentor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Auto-commenter

on:
pull_request:
branches: [main]
types: [closed]
types: [opened, closed]
pull_request_target:
types: [opened, closed]

permissions:
id-token: write
Expand All @@ -17,14 +18,13 @@ jobs:
- uses: wow-actions/auto-comment@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pullRequestOpened: |
👋 @{{ author }}
Thank you for raising your pull request.
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
pullRequestClosed: >
👋 @{{ author }} This PR is closed. If you think there's been a mistake, please contact with the maintainer @iamwatchdogs.
pullRequestClosed: |
👋 @{{ author }} This PR is closed. If you think there's been a mistake, please contact the maintainer @iamwatchdogs.
pullRequestMerged: |
Thank you for contributing @{{ author }}, Make sure to check your contribution on [GitHub Pages](grow-with-open-source.github.io/Notebook/ "view contributions").
Thank you for contributing @{{ author }}. Make sure to check your contribution on [GitHub Pages](https://grow-with-open-source.github.io/Notebook/ "view contributions").
7 changes: 7 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: hacktoberfest-labeler
on:
pull_request:
types: [opened, reopened, closed]
pull_request_target:
types: [opened, reopened, closed]


permissions:
contents: read
pull-requests: write

jobs:
auto-labeler:
Expand Down

0 comments on commit 8c1cf5f

Please sign in to comment.