Conversation
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| show-progress: 'false' | ||
| - name: Trigger "On PR opened/updated (check)" for all open PRs | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| workflow_name="On PR opened/updated (check)" | ||
|
|
||
| gh pr list --state open --json number,headRefName --jq '.[] | "\(.number) \(.headRefName)"' | | ||
| while read pr branch; do | ||
| echo "Triggering '$workflow_name' for PR #$pr on ref '$branch'" | ||
|
|
||
| gh workflow run "$workflow_name" \ | ||
| --ref "$branch" \ | ||
| --field pr_number="$pr" | ||
| done |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
This autofix suggestion was applied.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To fix the issue, explicitly define a permissions block at the appropriate level (workflow root or relevant job). Since the job uses gh workflow run, it likely needs workflows: write, and possibly contents: read to run at all. The safest minimal fix is to add a permissions: section at the root of the workflow, limiting contents to read, and granting workflows: write. This way, all jobs (including the lone rerun job) will inherit these permissions unless otherwise specified. You should add the following lines after the name: field and before the on: field (per GitHub workflow conventions):
permissions:
contents: read
workflows: write| @@ -1,4 +1,7 @@ | ||
| name: Rerun PR merge conclicts check | ||
| permissions: | ||
| contents: read | ||
| workflows: write | ||
|
|
||
| on: | ||
| push: |
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
We need to try out in This needs to go in quickly as it fixes the workflow name, too. |
…ue676 * upstream/main: (227 commits) Adapt welcome message (JabRef#14487) Add message when closing a PR Add collection of "all" AI features (JabRef#14438) Trigger conflict-detection on push on main (JabRef#14479) Add unassigned_comment on comment issue New Crowdin updates (JabRef#14483) Tweak labels also at merge conflicts Merge --remove-label and --add-label Remove SmartGroup and refactor groups factory (JabRef#14398) more debug Support html when parsing arXiv identifiers (JabRef#14474) Add debug and fix run Remove "ready-for-review" if changes are required Have label move as last step of comment Add pr number to output change files to file(s) (JabRef#14465) Add CDS archive (JabRef#14476) Fix adapting labels (JabRef#14477) Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#14468) Chore(deps): Bump net.bytebuddy:byte-buddy in /versions (JabRef#14472) ...
* upstream/main: (102 commits) Adapt welcome message (JabRef#14487) Add message when closing a PR Add collection of "all" AI features (JabRef#14438) Trigger conflict-detection on push on main (JabRef#14479) Add unassigned_comment on comment issue New Crowdin updates (JabRef#14483) Tweak labels also at merge conflicts Merge --remove-label and --add-label Remove SmartGroup and refactor groups factory (JabRef#14398) more debug Support html when parsing arXiv identifiers (JabRef#14474) Add debug and fix run Remove "ready-for-review" if changes are required Have label move as last step of comment Add pr number to output change files to file(s) (JabRef#14465) Add CDS archive (JabRef#14476) Fix adapting labels (JabRef#14477) Chore(deps): Bump jablib/src/main/resources/csl-styles (JabRef#14468) Chore(deps): Bump net.bytebuddy:byte-buddy in /versions (JabRef#14472) ...
Triggered by following output:
I think, a daily check is enough - to not pollute our actions run list
When action runs:
Then for each trigger:
If there is a conflict:
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)