step-security/Setup Bazel environment
Setup a Bazel environment, including Bazelisk and fine-grained caching
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| bazelisk-cache | Caches Bazelisk downloads based on .bazelversion | no | false |
| bazelisk-version | The Bazelisk version to download and use if necessary | — | "" |
| bazelrc | Extra contents to write to user .bazelrc | no | "" |
| cache-save | Whether to save caches. Set to false for pull requests to allow restores but prevent saves. | no | true |
| cache-version | Version of all caches | no | 1 |
| disk-cache | Cache actions outputs based on BUILD | no | false |
| external-cache | Cache external 10MB+ repositories based on MODULE.bazel/WORKSPACE | no | "" |
| google-credentials | Google Cloud account key for remote cache | no | "" |
| module-root | Bazel module root directory. Default is `.` | no | . |
| output-base | Bazel output base directory. Default is $HOME/.cache/bazel (POSIX) or D:/_bazel (Windows) | no | "" |
| repository-cache | Cache repositories based on MODULE.bazel/WORKSPACE | no | false |
| cache-restore-timeout | Timeout in milliseconds for each cache restore operation (download + extraction). Set to 0 to disable. | no | 0 |
| token | GitHub token to query Bazelisk releases | no | ${{ github.token }} |
Outputs
no outputs