feat: query self RBAC list permissions before attempting to clean up orphans #1774
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
| --- | |
| name: pre-commit | |
| on: | |
| pull_request: | |
| merge_group: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_TOOLCHAIN_VERSION: "nightly-2026-02-24" | |
| permissions: {} | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - uses: stackabletech/actions/run-pre-commit@c34dbb4f27b274736c7d2edc6f6f30a03d03edf5 # v0.12.2 | |
| with: | |
| rust: ${{ env.RUST_TOOLCHAIN_VERSION }} | |
| # rust-src is required for trybuild stderr output comparison to work | |
| # for our cases. | |
| # See: https://github.com/dtolnay/trybuild/issues/236#issuecomment-1620950759 | |
| rust-components: rustfmt,clippy,rust-src |