Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .github/workflows/bzlmod-lock.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/lint.yml → .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

name: Linting Checks
name: PR Checks

on:
pull_request:
Expand All @@ -20,21 +20,22 @@ on:
types: [checks_requested]

jobs:
lint:
pre-commit:
name: Run pre-commit checks
runs-on: ubuntu-latest
continue-on-error: true
steps:

- name: 🛡️ Harden Runner
if: github.repository_owner == 'eclipse-score'
uses: step-security/harden-runner@v2.18.0
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@v4.2.2
uses: actions/checkout@v6

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.15.0
uses: bazel-contrib/setup-bazel@0.19.0
with:
disk-cache: true
repository-cache: true
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ repos:
language: system
pass_filenames: false
files: '(^|/)(MODULE\.bazel|.*\.bzl|BUILD(\.bazel)?)$'

- id: bzlmod-lockfile
name: bazel mod deps lockfile check
entry: bazel mod deps --lockfile_mode=error
language: system
pass_filenames: false
files: '(^|/)MODULE\.bazel(\.lock)?$'

- id: actionlint
name: actionlint
# Disable shellcheck and pyflakes for now, to enforce consistent behavior.
Expand Down
Loading