Skip to content

Sync with Pro (TEST) #22825

Sync with Pro (TEST)

Sync with Pro (TEST) #22825

Workflow file for this run

# AUTOGENERATED FROM lint.jsonnet DO NOT MODIFY
jobs:
github-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure git safedir properly
run: git config --global --add safe.directory $(pwd)
- uses: actions/setup-go@v4
with:
go-version: "1.19"
- run: go install github.com/rhysd/actionlint/cmd/actionlint@v1.6.25
- run: actionlint -shellcheck=''
jsonnet-gha:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check GitHub workflow files are up to date
run: |
sudo apt-get update
sudo apt-get install jsonnet
cd .github/workflows
make clean
make
git diff --exit-code
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure git safedir properly
run: git config --global --add safe.directory $(pwd)
- name: Fetch semgrep-cli submodules
run: git submodule update --init --recursive --recommend-shallow cli/src/semgrep/semgrep_interfaces
- uses: actions/setup-python@v4
with:
cache: pip
cache-dependency-path: .github/workflows/lint.yml
python-version: "3.11"
- env:
SKIP_OCAMLFORMAT: yes
uses: pre-commit/action@v3.0.0
pre-commit-manual:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure git safedir properly
run: git config --global --add safe.directory $(pwd)
- uses: pre-commit/action@v3.0.0
with:
extra_args: --hook-stage manual
pre-commit-ocaml:
container: returntocorp/ocaml:ubuntu-2023-10-17
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- env:
HOME: /root
name: Check OCaml code with ocamlformat
run: |
# When installing ocamlformat OPAM will try to rebuild some packages
# and for that it requires 'autoconf'.
apt-get install -y autoconf
opam update
opam install -y ocamlformat.0.26.2
git config --global --add safe.directory "$GITHUB_WORKSPACE"
opam exec -- pre-commit run --verbose --all lint-ocaml
name: lint
on:
pull_request: null
push:
branches:
- develop
workflow_dispatch: null