fix(security): Address CodeQL Uncontrolled Data in Path Expression vulnerability #631
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Actions CodeQL | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/**' | |
schedule: | |
- cron: '30 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
codeql: | |
name: 'Github Actions CodeQL' | |
runs-on: ubuntu-24.04 | |
permissions: | |
security-events: write | |
steps: | |
- name: Checkout LLVM | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
sparse-checkout: | | |
.github/ | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@303c0aef88fc2fe5ff6d63d3b1596bfd83dfa1f9 # v3.30.4 | |
with: | |
languages: actions, swift | |
queries: security-extended | |
- name: Build Swift code | |
run: | | |
swiftc llvm/test/tools/opt-viewer/Inputs/suppress/s.swift | |
swiftc llvm/test/tools/opt-viewer/Inputs/unicode-function-name/s.swift | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@303c0aef88fc2fe5ff6d63d3b1596bfd83dfa1f9 # v3.30.4 |