[llvm] workflows/release-doxygen: Add some security checks and input validation (PR #196769)
Cullen Rhodes via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 23:19:26 PDT 2026
================
@@ -34,6 +34,36 @@ on:
required: true
jobs:
+ # This job checks permissions and validates inputs to prevent potential
+ # malicious actions. Since the release-doxygen job has contents: write
+ # permissions we need to be extra careful about who can run the job and
+ # what inputs can be provided.
+ release-doxygen-validate-input:
+ name: Release Doxygen Validate Input
+ runs-on: ubuntu-24.04
+ environment:
+ name: release
+ deployment: false
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout at de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
+ with:
+ persist-credentials: false
+ sparse-checkout: |
+ .github/workflows/
+
+ - name: Check Permissions
+ uses: ./.github/workflows/require-release-manager
+ with:
+ LLVM_TOKEN_GENERATOR_CLIENT_ID: ${{ secrets.LLVM_TOKEN_GENERATOR_CLIENT_ID }}
+ LLVM_TOKEN_GENERATOR_PRIVATE_KEY: ${{ secrets.LLVM_TOKEN_GENERATOR_PRIVATE_KEY }}
+
+ - name: Validate Input
+ ./.github/workflows/validate-release-version
----------------
c-rhodes wrote:
i just landed https://github.com/llvm/llvm-project/actions/runs/25716570559/workflow and this is broken, think you missed `uses:`?
```suggestion
uses: ./.github/workflows/validate-release-version
```
https://github.com/llvm/llvm-project/pull/196769
More information about the llvm-commits
mailing list