Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ANSHIKA-26 committed Oct 2, 2024
1 parent d810064 commit b29b707
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/restrict_issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
issues:
types: [opened]

permissions:
issues: write # Grants the necessary permission to update and comment on issues

jobs:
restrict_issue_creation:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Fetch contributor's issues
uses: actions/github-script@v7 # Updated to use the latest version (v7)
uses: actions/github-script@v7
with:
script: |
const user = context.payload.issue.user.login;
Expand Down

0 comments on commit b29b707

Please sign in to comment.