[llvm] X86 share isdispordisp8 (PR #222589)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 03:27:24 PDT 2026


================
@@ -0,0 +1,98 @@
+# GitHub Actions workflow to automatically delete amdPR/* branches after PR closure
+# This workflow helps maintain repository cleanliness by removing temporary branches
+name: AMD - Delete amdPR/* Branches After Merge and Notify
+
+# Trigger this workflow when a pull request is merged
+on:
+  pull_request:
+    types: [closed]
+
+# Define minimum required permissions for security
+permissions:
+  contents: read
+
+# Set default shell to bash for all steps
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  # Main job to handle branch deletion logic
+  delete-branch:
+    # Job runs only if the pull request was merged (merged == true)
+    # If the PR was just closed without merging, this job is skipped
+    if: github.event.pull_request.merged == true
+    runs-on: amd_linux
+    # Define outputs that can be consumed by dependent jobs
+    outputs:
+      delete_status: ${{ steps.delete_branch.outputs.delete_status }}
+      branch_name: ${{ steps.check_branch.outputs.branch_name }}
+    steps:
+      # Step 1: Check if the source branch follows the amdPR/* naming pattern
+      - name: Check if source branch matches amdPR/*
+        id: check_branch
+        run: |
+          # Get the branch name from the pull request event
+          BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
----------------
github-advanced-security[bot] wrote:

## CodeQL / Code injection

Potential code injection in [${{ github.event.pull_request.head.ref }}](1), which may be controlled by an external user.

[Show more details](https://github.com/llvm/llvm-project/security/code-scanning/2355)

https://github.com/llvm/llvm-project/pull/222589


More information about the llvm-commits mailing list