diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7f12309..8ae9df0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: @@ -9,3 +11,137 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + # Ignore vendored mimalloc crates; updates are managed manually. + ignore: + - dependency-name: "regorus-mimalloc" + - dependency-name: "regorus-mimalloc-sys" + + - package-ecosystem: "cargo" + directory: "/bindings/ffi" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/bindings/java" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/bindings/python" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/bindings/ruby" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/bindings/ruby/ext/regorusrb" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/bindings/wasm" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/tests/ensure_no_std" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "cargo" + directory: "/xtask" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "gomod" + directory: "/bindings/go" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "maven" + directory: "/bindings/java" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "nuget" + directory: "/bindings/csharp" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "pip" + directory: "/bindings/python" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "bundler" + directory: "/bindings/ruby" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + per-dependency: + patterns: + - "*" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 806bea7..3a900a4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: "CodeQL Security Analysis" on: @@ -60,7 +62,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 # Setup language-specific dependencies BEFORE CodeQL init for proper tracing setup - name: Setup Rust @@ -84,26 +86,26 @@ jobs: - name: Setup Python if: matrix.language == 'python' - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: '3.10' - name: Setup Java if: matrix.language == 'java-kotlin' - uses: actions/setup-java@v4 + uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 with: distribution: 'corretto' java-version: '8' - name: Setup Go if: matrix.language == 'go' - uses: actions/setup-go@v5 + uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 with: go-version: '1.21' - name: Setup .NET if: matrix.language == 'csharp' - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: global-json-file: ./bindings/csharp/global.json @@ -113,12 +115,12 @@ jobs: - name: Setup Node.js if: matrix.language == 'javascript-typescript' - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: '18' - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a # v3.32.2 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -139,7 +141,7 @@ jobs: - name: Setup Ruby if: matrix.language == 'rust' && contains(matrix.working-directory, 'ruby') - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 with: ruby-version: '3.4.2' bundler-cache: true @@ -186,6 +188,6 @@ jobs: run: cargo xtask build-wasm --release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a # v3.32.2 with: category: "/language:${{matrix.language}}" \ No newline at end of file diff --git a/.github/workflows/pr-extensions.yml b/.github/workflows/pr-extensions.yml index 1c81fb2..7999d88 100644 --- a/.github/workflows/pr-extensions.yml +++ b/.github/workflows/pr-extensions.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: tests/release-extensions on: @@ -18,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Setup Rust toolchain uses: ./.github/actions/toolchains/rust - name: Cache cargo diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e86cd48..5707cf3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: tests/release on: @@ -18,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Setup Rust toolchain uses: ./.github/actions/toolchains/rust - name: Cache cargo diff --git a/.github/workflows/publish-java.yml b/.github/workflows/publish-java.yml index 53c88bc..47cef3a 100644 --- a/.github/workflows/publish-java.yml +++ b/.github/workflows/publish-java.yml @@ -1,6 +1,9 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: publish-java -on: workflow_dispatch +on: + workflow_dispatch: permissions: contents: read @@ -32,7 +35,7 @@ jobs: os: windows-latest extension: dll steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 @@ -63,7 +66,7 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 diff --git a/.github/workflows/publish-python.yml b/.github/workflows/publish-python.yml index 778348c..dac834a 100644 --- a/.github/workflows/publish-python.yml +++ b/.github/workflows/publish-python.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# # This file is autogenerated by maturin v1.4.0 # To update, run # @@ -18,7 +20,7 @@ jobs: matrix: target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: '3.10' @@ -50,7 +52,7 @@ jobs: matrix: target: [x64, x86] steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: '3.10' @@ -82,7 +84,7 @@ jobs: matrix: target: [x86_64, aarch64, universal2-apple-darwin] steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: '3.10' diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml index 682319c..a5c646d 100644 --- a/.github/workflows/publish-wasm.yml +++ b/.github/workflows/publish-wasm.yml @@ -1,10 +1,13 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: publish-wasm permissions: pull-requests: write contents: write -on: workflow_dispatch +on: + workflow_dispatch: jobs: publish-wasm: @@ -12,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 # Setup .npmrc file to publish to npm diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index ebd190c..2134f32 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -1,10 +1,13 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: Release-plz permissions: pull-requests: write contents: write -on: workflow_dispatch +on: + workflow_dispatch: jobs: release-plz: @@ -14,13 +17,13 @@ jobs: contents: write steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - name: Install Rust toolchain uses: ./.github/actions/toolchains/rust - name: Run release-plz - uses: MarcoIeni/release-plz-action@8724d33cd97b8295051102e2e19ca592962238f5 #v0.5.108 + uses: MarcoIeni/release-plz-action@8724d33cd97b8295051102e2e19ca592962238f5 # v0.5.108 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 13ba0a9..d476279 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support @@ -30,7 +32,7 @@ jobs: actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status steps: - name: Checkout code - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Setup Rust toolchain uses: ./.github/actions/toolchains/rust diff --git a/.github/workflows/test-c-cpp.yml b/.github/workflows/test-c-cpp.yml index d8ee86d..839aad2 100644 --- a/.github/workflows/test-c-cpp.yml +++ b/.github/workflows/test-c-cpp.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/c-cpp on: @@ -14,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 diff --git a/.github/workflows/test-csharp.yml b/.github/workflows/test-csharp.yml index f047b35..1d1e48e 100644 --- a/.github/workflows/test-csharp.yml +++ b/.github/workflows/test-csharp.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/csharp on: @@ -37,7 +39,7 @@ jobs: **/release/libregorus_ffi.dylib steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: ./.github/actions/toolchains/rust @@ -71,7 +73,7 @@ jobs: needs: build-ffi steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: ./.github/actions/toolchains/rust @@ -129,7 +131,7 @@ jobs: target: aarch64-apple-darwin steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 diff --git a/.github/workflows/test-ffi.yml b/.github/workflows/test-ffi.yml index 65755b6..77cfdf2 100644 --- a/.github/workflows/test-ffi.yml +++ b/.github/workflows/test-ffi.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/ffi on: @@ -14,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: ./.github/actions/toolchains/rust diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index fb65be3..1ae3d7b 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/go on: @@ -14,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: ./.github/actions/toolchains/rust diff --git a/.github/workflows/test-java.yml b/.github/workflows/test-java.yml index 4c64da3..b08a8cb 100644 --- a/.github/workflows/test-java.yml +++ b/.github/workflows/test-java.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/java on: @@ -14,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 diff --git a/.github/workflows/test-musl.yml b/.github/workflows/test-musl.yml index be7c4a5..fef45d7 100644 --- a/.github/workflows/test-musl.yml +++ b/.github/workflows/test-musl.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: musl on: @@ -18,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - uses: ./.github/actions/toolchains/rust with: targets: x86_64-unknown-linux-musl diff --git a/.github/workflows/test-no-std.yml b/.github/workflows/test-no-std.yml index b6398fb..e600300 100644 --- a/.github/workflows/test-no-std.yml +++ b/.github/workflows/test-no-std.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/no-std on: @@ -18,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - uses: ./.github/actions/toolchains/rust with: targets: thumbv7m-none-eabi diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 7c5e0f1..01812ea 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/python on: @@ -21,7 +23,7 @@ jobs: runs-on: ${{ matrix.host.name }} steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: ./.github/actions/toolchains/rust @@ -63,7 +65,7 @@ jobs: runs-on: ${{ matrix.host }} steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - uses: ./.github/actions/toolchains/rust diff --git a/.github/workflows/test-ruby.yml b/.github/workflows/test-ruby.yml index 87f0f35..bafc9bd 100644 --- a/.github/workflows/test-ruby.yml +++ b/.github/workflows/test-ruby.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/ruby on: @@ -12,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - name: Setup Ruby and Rust - uses: oxidize-rb/actions/setup-ruby-and-rust@7ca44a16e287e5ff7dd72ab53f4bd41cbf34a571 #v1.26 + uses: oxidize-rb/actions/setup-ruby-and-rust@7ca44a16e287e5ff7dd72ab53f4bd41cbf34a571 # v1.26 with: bundler: 2.6.5 rubygems: 3.6.5 diff --git a/.github/workflows/test-wasm.yml b/.github/workflows/test-wasm.yml index e70ebfa..68f8556 100644 --- a/.github/workflows/test-wasm.yml +++ b/.github/workflows/test-wasm.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: bindings/wasm on: @@ -14,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 diff --git a/.github/workflows/tests-debug.yml b/.github/workflows/tests-debug.yml index 8d1891c..9e3b022 100644 --- a/.github/workflows/tests-debug.yml +++ b/.github/workflows/tests-debug.yml @@ -1,3 +1,5 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# name: tests/debug on: @@ -18,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Setup Rust toolchain uses: ./.github/actions/toolchains/rust - name: Cache cargo