floating_deps #79
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
| # Build and lint tfhe-rs against the latest semver-compatible dependencies. | |
| # | |
| # This job runs UNTRUSTED code: it updates dependencies to their latest semver | |
| # compatible version (ignoring the committed Cargo.lock), so a newly published | |
| # malicious dependency version could execute in build scripts / proc-macros. | |
| # It therefore runs on an ephemeral GitHub-hosted runner with no secrets and | |
| # read-only permissions. | |
| name: floating_deps | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # runs every day at 5am UTC | |
| - cron: '0 5 * * *' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| check-floating-deps: | |
| name: floating_deps/check-floating-deps | |
| if: github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'schedule' && github.repository == 'zama-ai/tfhe-rs') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # for actions/checkout | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Build and lint against up-to-date dependencies | |
| run: | | |
| make check_floating_deps |