diff --git a/.github/actions/setup-copilot/action.yml b/.github/actions/setup-copilot/action.yml index a9c39a2a0a..f47840bf2a 100644 --- a/.github/actions/setup-copilot/action.yml +++ b/.github/actions/setup-copilot/action.yml @@ -10,13 +10,13 @@ outputs: runs: using: "composite" steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 if: runner.os != 'Windows' with: cache: "npm" cache-dependency-path: "./nodejs/package-lock.json" node-version: 22 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 if: runner.os == 'Windows' with: node-version: 22 diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index b782cdd9fb..421fd65159 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -15,6 +15,8 @@ updates: # Dependabot's find-and-replace breaks lockfile metadata headers. - dependency-name: "actions/github-script" - dependency-name: "github/gh-aw-actions" + cooldown: + default-days: 7 - package-ecosystem: 'devcontainers' directory: '/' multi-ecosystem-group: 'all' diff --git a/.github/workflows/codegen-check.yml b/.github/workflows/codegen-check.yml index f37a71e45e..8642ee2e67 100644 --- a/.github/workflows/codegen-check.yml +++ b/.github/workflows/codegen-check.yml @@ -28,19 +28,19 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 22 - - uses: actions/setup-go@v5 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with: go-version: '1.22' # Rust generator runs `cargo fmt` on the output, so we need a toolchain with rustfmt. - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable with: toolchain: "1.94.0" components: rustfmt @@ -51,7 +51,7 @@ jobs: # imports under stable rustfmt; nightly fmt consolidates them to match # the canonical committed form. - name: Install nightly rustfmt - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@d1031067263f94b142dd6c0ce24c5eb9d02d52a0 # master with: toolchain: nightly-2026-04-14 components: rustfmt diff --git a/.github/workflows/collect-corrections.yml b/.github/workflows/collect-corrections.yml index 5284e33427..b633369cc9 100644 --- a/.github/workflows/collect-corrections.yml +++ b/.github/workflows/collect-corrections.yml @@ -26,8 +26,8 @@ jobs: collect: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/github-script@v8 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: | const script = require('./scripts/corrections/collect-corrections.js') diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index d6265a3331..20a734c898 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -25,11 +25,11 @@ jobs: steps: # Checkout the repository to install dependencies - name: Checkout code - uses: actions/checkout@v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # Setup Node.js (for TypeScript/JavaScript SDK and tooling) - name: Set up Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22" cache: "npm" @@ -40,31 +40,31 @@ jobs: # Setup Python (for Python SDK) - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: python-version: "3.12" # Setup uv (Python package manager used in this repo) - name: Set up uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 with: enable-cache: true # Setup Go (for Go SDK) - name: Set up Go - uses: actions/setup-go@v6 + uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version: "1.24" # Setup .NET (for .NET SDK) - name: Set up .NET - uses: actions/setup-dotnet@v5 + uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0 with: dotnet-version: "10.0.x" # Setup Java (for Java SDK) - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1 with: distribution: "microsoft" java-version: "17" @@ -72,7 +72,7 @@ jobs: # Install just command runner - name: Install just - uses: extractions/setup-just@v3 + uses: extractions/setup-just@f8a3cce218d9f83db3a2ecd90e41ac3de6cdfd9b # v3.1.0 # Install gh-aw extension for advanced GitHub CLI features - name: Install gh-aw extension diff --git a/.github/workflows/corrections-tests.yml b/.github/workflows/corrections-tests.yml index 693b4a4088..874d44916e 100644 --- a/.github/workflows/corrections-tests.yml +++ b/.github/workflows/corrections-tests.yml @@ -18,8 +18,8 @@ jobs: runs-on: ubuntu-latest if: github.event.repository.fork == false steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 24 - run: npm ci diff --git a/.github/workflows/docs-validation.yml b/.github/workflows/docs-validation.yml index 2ec8c6652b..41f378b44a 100644 --- a/.github/workflows/docs-validation.yml +++ b/.github/workflows/docs-validation.yml @@ -26,9 +26,9 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 22 cache: "npm" @@ -51,18 +51,18 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 22 - - uses: actions/setup-python@v6 + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: python-version: "3.12" - name: Install uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 - name: Install SDK dependencies working-directory: python @@ -84,13 +84,13 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 22 - - uses: actions/setup-go@v6 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version: "1.24" cache-dependency-path: "go/go.sum" @@ -108,13 +108,13 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 22 - - uses: actions/setup-dotnet@v5 + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0 with: dotnet-version: "10.0.x" @@ -135,13 +135,13 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 22 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1 with: distribution: 'microsoft' java-version: '25' diff --git a/.github/workflows/dotnet-sdk-tests.yml b/.github/workflows/dotnet-sdk-tests.yml index b49c6e33e7..f12f53bd96 100644 --- a/.github/workflows/dotnet-sdk-tests.yml +++ b/.github/workflows/dotnet-sdk-tests.yml @@ -18,11 +18,11 @@ jobs: shell: bash working-directory: ./dotnet steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-dotnet@v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0 with: dotnet-version: "10.0.x" - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22" @@ -192,11 +192,11 @@ jobs: shell: bash working-directory: ./dotnet steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-dotnet@v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0 with: dotnet-version: "10.0.x" - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22" cache: "npm" @@ -363,7 +363,7 @@ jobs: matrix: transport: ["default", "inprocess"] steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Run ${{ matrix.transport }} tests on ARM64 Alpine uses: ./.github/actions/run-alpine-tests diff --git a/.github/workflows/go-sdk-tests.yml b/.github/workflows/go-sdk-tests.yml index 5f06016c3b..cde400615a 100644 --- a/.github/workflows/go-sdk-tests.yml +++ b/.github/workflows/go-sdk-tests.yml @@ -18,8 +18,8 @@ jobs: shell: bash working-directory: ./go steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-go@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version: "1.24" - name: Run go fmt @@ -32,7 +32,7 @@ jobs: fi echo "✅ go fmt produced no changes" - name: Install golangci-lint - uses: golangci/golangci-lint-action@v9 + uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: working-directory: ./go version: latest @@ -55,10 +55,10 @@ jobs: shell: bash working-directory: ./go steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: ./.github/actions/setup-copilot id: setup-copilot - - uses: actions/setup-go@v6 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 with: go-version: "1.24" @@ -93,7 +93,7 @@ jobs: matrix: transport: ["default", "inprocess"] steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Run Go SDK tests on musl ARM64 (${{ matrix.transport }}) uses: ./.github/actions/run-alpine-tests diff --git a/.github/workflows/nodejs-sdk-tests.yml b/.github/workflows/nodejs-sdk-tests.yml index c7674d5809..8672bf024f 100644 --- a/.github/workflows/nodejs-sdk-tests.yml +++ b/.github/workflows/nodejs-sdk-tests.yml @@ -21,8 +21,8 @@ jobs: shell: bash working-directory: ./nodejs steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: cache: "npm" cache-dependency-path: "./nodejs/package-lock.json" @@ -64,8 +64,8 @@ jobs: shell: bash working-directory: ./nodejs steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: cache: "npm" cache-dependency-path: "./nodejs/package-lock.json" @@ -109,7 +109,7 @@ jobs: matrix: transport: ["default", "inprocess"] steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Run Alpine ARM64 tests (${{ matrix.transport }}) uses: ./.github/actions/run-alpine-tests env: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5e1d277259..bb412e6db6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,8 +40,8 @@ jobs: run: working-directory: ./nodejs steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22.x" - run: npm ci --ignore-scripts @@ -95,8 +95,8 @@ jobs: run: working-directory: ./nodejs steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22.x" - run: npm ci --ignore-scripts @@ -116,7 +116,7 @@ jobs: fi npm run verify:release-packages - name: Upload artifact - uses: actions/upload-artifact@v7.0.0 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: nodejs-package path: nodejs/github-copilot-sdk-*.tgz @@ -132,14 +132,14 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22.x" - name: Update npm for OIDC support run: npm i -g "npm@11.6.3" - name: Download Node.js package - uses: actions/download-artifact@v8.0.0 + uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 with: name: nodejs-package path: ./dist @@ -190,12 +190,12 @@ jobs: ADO_RESOURCE: 499b84ac-1321-427f-aa17-267ca6975798 FEED_URL: https://pkgs.dev.azure.com/devdiv/_packaging/copilot-canary/npm/registry/ steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22.x" - name: Download Node.js package - uses: actions/download-artifact@v8.0.0 + uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 with: name: nodejs-package path: ./dist @@ -265,8 +265,8 @@ jobs: run: working-directory: ./dotnet steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-dotnet@v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0 with: dotnet-version: "10.0.x" - name: Restore dependencies @@ -274,7 +274,7 @@ jobs: - name: Build and pack run: dotnet pack src/GitHub.Copilot.SDK.csproj -c Release -p:Version=${{ needs.version.outputs.version }} -o ./artifacts - name: Upload artifact - uses: actions/upload-artifact@v7.0.0 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: dotnet-package path: | @@ -282,7 +282,7 @@ jobs: dotnet/artifacts/*.snupkg - name: NuGet login (OIDC) if: github.ref == 'refs/heads/main' - uses: NuGet/login@v1 + uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0 id: nuget-login with: # The following must be a username, not an organization name, and that user must have configured Trusted Publishing @@ -305,12 +305,12 @@ jobs: run: working-directory: ./rust steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable with: toolchain: "1.94.0" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 with: workspaces: "rust" - name: Set version @@ -330,7 +330,7 @@ jobs: - name: Package (dry run) run: cargo publish --dry-run --allow-dirty - name: Upload artifact - uses: actions/upload-artifact@v7.0.0 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: rust-package path: rust/target/package/*.crate @@ -352,15 +352,15 @@ jobs: run: working-directory: ./python steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-python@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: python-version: "3.12" - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22.x" - name: Set up uv - uses: astral-sh/setup-uv@v7 + uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 - name: Set version run: sed -i "s/^version = .*/version = \"${{ needs.version.outputs.version }}\"/" pyproject.toml - name: Inject CLI version @@ -368,13 +368,13 @@ jobs: - name: Build wheel run: uv build --wheel --out-dir dist - name: Upload artifact - uses: actions/upload-artifact@v7.0.0 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: python-package path: python/dist/* - name: Publish to PyPI if: github.ref == 'refs/heads/main' - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 with: packages-dir: python/dist/ @@ -417,7 +417,7 @@ jobs: actions: write contents: write steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Create GitHub Release if: github.event.inputs.dist-tag == 'latest' run: | diff --git a/.github/workflows/python-sdk-tests.yml b/.github/workflows/python-sdk-tests.yml index b4c8b89f10..e51ee3f3c8 100644 --- a/.github/workflows/python-sdk-tests.yml +++ b/.github/workflows/python-sdk-tests.yml @@ -21,8 +21,8 @@ jobs: shell: bash working-directory: ./python steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-python@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: python-version: "3.11" - name: Set up uv @@ -57,11 +57,11 @@ jobs: shell: bash working-directory: ./python steps: - - uses: actions/checkout@v6.0.2 - - uses: actions/setup-python@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: python-version: ${{ matrix.python-version }} - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: "22" cache: "npm" @@ -110,7 +110,7 @@ jobs: runs-on: ubuntu-24.04-arm timeout-minutes: 20 steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Run Python SDK tests on musl uses: ./.github/actions/run-alpine-tests diff --git a/.github/workflows/rust-sdk-tests.yml b/.github/workflows/rust-sdk-tests.yml index 29dec07506..440641bbdc 100644 --- a/.github/workflows/rust-sdk-tests.yml +++ b/.github/workflows/rust-sdk-tests.yml @@ -26,18 +26,18 @@ jobs: shell: bash working-directory: ./rust steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: ./.github/actions/setup-copilot id: setup-copilot # rust-toolchain.toml in rust/ pins the stable channel + components. - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable with: toolchain: "1.94.0" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 with: workspaces: "rust" prefix-key: v1-rust-no-bin @@ -55,7 +55,7 @@ jobs: # now downloads in both modes (embed for `bundle`, extract-to-cache # for this `test` job's `--no-default-features` build). - name: Cache bundled CLI archives - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./rust/.bundled-cli-cache key: bundled-cli-${{ matrix.os }}-${{ steps.cli-version.outputs.version }} @@ -96,7 +96,7 @@ jobs: shell: bash working-directory: ./rust steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable @@ -128,7 +128,7 @@ jobs: echo "Pinned CLI version: $version" - name: Cache bundled CLI archives - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./rust/.bundled-cli-cache key: bundled-cli-ubuntu-latest-${{ steps.cli-version.outputs.version }} @@ -155,7 +155,7 @@ jobs: shell: bash working-directory: ./rust steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable @@ -177,7 +177,7 @@ jobs: echo "Pinned CLI version: $version" - name: Cache bundled CLI archives - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./rust/.bundled-cli-cache key: bundled-cli-ubuntu-latest-${{ steps.cli-version.outputs.version }} @@ -215,7 +215,7 @@ jobs: shell: bash working-directory: ./rust steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - uses: ./.github/actions/setup-copilot id: setup-copilot @@ -240,7 +240,7 @@ jobs: echo "Pinned CLI version: $version" - name: Cache bundled CLI archives - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./rust/.bundled-cli-cache key: bundled-cli-${{ matrix.os }}-${{ steps.cli-version.outputs.version }} @@ -290,14 +290,14 @@ jobs: shell: bash working-directory: ./rust steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable with: toolchain: "1.94.0" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 # Cache is only an optimization; the Windows bundled smoke test should # not fail when rust-cache's post-job save flakes after a successful build. continue-on-error: ${{ runner.os == 'Windows' }} @@ -320,7 +320,7 @@ jobs: # archives drop out when the pinned version bumps, keeping the # cache bounded. - name: Cache bundled CLI archives - uses: actions/cache@v4 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./rust/.bundled-cli-cache key: bundled-cli-${{ matrix.os }}-${{ steps.cli-version.outputs.version }} @@ -345,7 +345,7 @@ jobs: matrix: transport: [default, inprocess] steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Test ${{ matrix.transport }} transport in Alpine uses: ./.github/actions/run-alpine-tests diff --git a/.github/workflows/sdk-canary.yml b/.github/workflows/sdk-canary.yml index 7425f8e720..ac57ca6c99 100644 --- a/.github/workflows/sdk-canary.yml +++ b/.github/workflows/sdk-canary.yml @@ -142,9 +142,9 @@ jobs: shell: bash working-directory: ./nodejs steps: - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: cache: "npm" cache-dependency-path: "./nodejs/package-lock.json" @@ -273,9 +273,9 @@ jobs: run: | echo "::warning title=e2e gate bypassed::Publishing SDK canary despite a non-passing e2e gate (test job result: ${{ needs.test.result }}) via publish-force. Triggered by '${{ github.actor }}' through '${{ github.event_name }}'. The e2e signal was bypassed; build + feed-only guards still apply." - - uses: actions/checkout@v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: actions/setup-node@v6 + - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: 22 diff --git a/.github/workflows/update-copilot-dependency.yml b/.github/workflows/update-copilot-dependency.yml index f1e4d9fca9..ee0a0caaef 100644 --- a/.github/workflows/update-copilot-dependency.yml +++ b/.github/workflows/update-copilot-dependency.yml @@ -26,17 +26,17 @@ jobs: exit 1 fi - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 22 - - uses: actions/setup-go@v5 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with: go-version: "1.22" - - uses: actions/setup-dotnet@v5 + - uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0 with: dotnet-version: "10.0.x" @@ -45,13 +45,13 @@ jobs: # imports_granularity, reorder_impl_items) pinned in # `rust/.rustfmt.nightly.toml`. See codegen-check.yml for the same step. - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable with: toolchain: "1.94.0" components: rustfmt - name: Install nightly rustfmt - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@d1031067263f94b142dd6c0ce24c5eb9d02d52a0 # master with: toolchain: nightly-2026-04-14 components: rustfmt @@ -82,7 +82,7 @@ jobs: cd ../dotnet && dotnet format src/GitHub.Copilot.SDK.csproj cd ../rust && cargo +nightly-2026-04-14 fmt --all -- --config-path .rustfmt.nightly.toml - - uses: actions/setup-java@v5 + - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 with: java-version: "25" distribution: "microsoft" diff --git a/.github/workflows/verify-compiled.yml b/.github/workflows/verify-compiled.yml index 3cc5110225..d618bf5629 100644 --- a/.github/workflows/verify-compiled.yml +++ b/.github/workflows/verify-compiled.yml @@ -15,7 +15,7 @@ jobs: if: github.event.repository.fork == false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Install gh-aw CLI uses: github/gh-aw-actions/setup-cli@9271a1804551c0dc4fb0085a97979950aa2f8489 # v0.88.2 with: