-
Notifications
You must be signed in to change notification settings - Fork 0
Merge development into main #60
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
Conversation
Signed-off-by: Tamim Hamoudi <18720062+thamudi@users.noreply.github.com>
* chore: remove legacy pipeline * chore: add new updated wp templates
…egistry Update: pipeline to use private registry
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Schedule Milestones | ||
| uses: readmeio/scheduled-milestones@v1.1.1 | ||
| id: scheduled | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| title: 'S-' | ||
| days: Thursday | ||
| count: 4 | ||
| format: YYYY-MM-DD | ||
|
|
||
| - name: Created Milestones | ||
| run: echo ${{ steps.scheduled.outputs.milestones }} |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 21 days ago
To fix the issue, you must add a permissions block to the workflow. Since the root of the workflow (.github/workflows/schedule-milestones.yaml) currently has no permissions declaration, you should add it at the top level (right after the name: field, before on:). The strictest safe default is contents: read, unless the action requires more (e.g., issues: write or milestones: write). Based on the action’s apparent behavior (creating/managing milestones), you may want to include issues: write explicitly if that is required. However, as a minimal starting point and as per the CodeQL suggestion, default to contents: read – update as needed if the action fails due to insufficient scopes.
Add after the name: schedule-milestones line:
permissions:
contents: readNo imports, definitions, or extra methods are needed in a YAML workflow file.
-
Copy modified lines R2-R3
| @@ -1,4 +1,6 @@ | ||
| name: schedule-milestones | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| schedule: |
Signed-off-by: Mohamad Berjawi <mohamad.fberjawi@gmail.com>
No description provided.