1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
# Copyright 2024-2025, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
name: Check against DLL injection (release)
permissions: read-all
on:
workflow_dispatch:
inputs:
version:
description: 'ISPC release version (just number without v, e.g., 1.24.0)'
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-dll-injection:
runs-on: windows-2022
# Disabling this workflow for non ispc/ispc repo as it needs to run on releases only.
if: github.repository == 'ispc/ispc'
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Install required packages
run: |
Install-ChocoPackage wget
Install-ChocoPackage procmon
Install-ChocoPackage 7zip
pip install defusedxml
shell: powershell
- name: Download ISPC release archives
env:
release_base_url: https://github.com/ispc/ispc/releases/download/
release_version: ${{ inputs.version }}
run: |
ZIP="ispc-v${release_version}-windows.zip"
echo "Download artifact $ZIP" >> "$GITHUB_STEP_SUMMARY"
wget --quiet -O "$ZIP" "${release_base_url}/v${release_version}/$ZIP"
7z x "$ZIP"
ISPC_BIN_DIR="ispc-v${release_version}-windows/bin"
echo "$ISPC_BIN_DIR" >> "$GITHUB_PATH"
shell: bash
- name: Check ISPC binary for DLL injection
run: |
python .github\workflows\scripts\check-dll-injection.py dbghelp.dll
shell: cmd
- name: Upload results
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
if: always()
with:
name: reports
path: |
dll_load_filtered.xml
|