-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (40 loc) · 1.21 KB
/
ci.yaml
File metadata and controls
44 lines (40 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
# ↓ lock down top‐level permissions to only what we use
permissions:
contents: read # we only need to checkout code
actions: read # to query workflows/runs
statuses: write
# Run on pushes to any branch and pull requests
on:
push:
branches: ['main']
pull_request:
branches: ['**']
jobs:
# Lint all YAML, JSON & Shell
lint:
name: Lint code & configs
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Super-linter
uses: github/super-linter@v7
env:
# only lint the file types you care about
VALIDATE_YAML: true
VALIDATE_JSON: true
VALIDATE_SHELL: true
VALIDATE_BASH: true
VALIDATE_BASH_EXEC: true
VALIDATE_CHECOV: true
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITLEAKS: true
VALIDATE_NATURAL_LANGUAGE: true
VALIDATE_MARKDOWN: true
FILTER_REGEX_EXCLUDE: (^cardano-config/|LICENSE\.md)
# tell it your default branch so it can diff
DEFAULT_BRANCH: origin/main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}