[AUTO-CHERRYPICK] pytorch: fix CVE-2024-5187 - branch 3.0-dev (#11042) #4887
This file contains 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
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT License. | |
name: Circular dependency check | |
on: | |
push: | |
branches: [3.0*, fasttrack/*, "!fasttrack/2.0"] | |
pull_request: | |
branches: [3.0*, fasttrack/*, "!fasttrack/2.0"] | |
jobs: | |
spec-check: | |
name: Circular dependency check | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the branch of our repo that triggered this action | |
- name: Workflow trigger checkout | |
uses: actions/checkout@v4 | |
- name: Check for circular dependencies | |
run: | | |
echo "Checking for circular dependency loops..." | |
# Setup the toolchain using the LKG daily build, and then make the full package graph. | |
# This will fail if any circular dependency loops are detected in the core SPECs. | |
sudo make -C toolkit graph REBUILD_TOOLS=y DAILY_BUILD_ID=lkg -j30 |