Skip to content

Commit 6b67d75

Browse files
Merge branch 'main' into wasteful-macaw
2 parents 4fb85fb + e0d539f commit 6b67d75

77 files changed

Lines changed: 4789 additions & 6340 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,20 @@ updates:
1313
- "/infra/dataform-service"
1414
schedule:
1515
interval: "weekly"
16+
cooldown:
17+
default-days: 7
1618

1719
- package-ecosystem: "terraform"
1820
directories:
1921
- "/infra/tf/"
2022
schedule:
2123
interval: "weekly"
24+
cooldown:
25+
default-days: 7
2226

2327
- package-ecosystem: "github-actions"
2428
directory: "/"
2529
schedule:
2630
interval: "weekly"
31+
cooldown:
32+
default-days: 7

.github/linters/.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
extend-ignore = E501

.github/linters/.sqlfluff

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[sqlfluff]
2+
dialect = bigquery
3+
max_line_length = 200
4+
5+
[sqlfluff:indentation]
6+
indent_unit = space
7+
tab_space_size = 2
8+
indented_using_on = False
9+
allow_implicit_indents = True
10+
11+
[sqlfluff:layout:type:binary_operator]
12+
line_position = trailing
13+
14+
[sqlfluff:rules:capitalisation.keywords]
15+
capitalisation_policy = upper
16+
17+
[sqlfluff:rules:capitalisation.types]
18+
extended_capitalisation_policy = upper
19+
20+
[sqlfluff:rules:convention.count_rows]
21+
prefer_count_0 = True
22+
23+
[sqlfluff:rules:convention.quoted_literals]
24+
preferred_quoted_literal_style = single_quotes

.github/linters/.trivyignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore the dataplexAdmin role issue
2+
AVD-GCP-0007

.github/linters/eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
4+
export default [
5+
{
6+
ignores: ['node_modules/**', 'package-lock.json', '*.log', 'dist/**', 'build/**']
7+
},
8+
js.configs.recommended,
9+
{
10+
languageOptions: {
11+
ecmaVersion: 2022,
12+
sourceType: 'module',
13+
globals: {
14+
...globals.node,
15+
16+
// Dataform-specific globals
17+
dataform: 'readonly',
18+
declare: 'readonly',
19+
assert: 'readonly',
20+
publish: 'readonly',
21+
operate: 'readonly',
22+
ctx: 'readonly',
23+
constants: 'readonly',
24+
reports: 'readonly',
25+
reservations: 'readonly'
26+
}
27+
},
28+
rules: {
29+
// Basic formatting rules
30+
'indent': ['error', 2],
31+
'quotes': ['error', 'single'],
32+
'semi': ['error', 'never']
33+
}
34+
}
35+
]

.github/linters/trivy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignorefile: ".github/linters/.trivyignore"

.github/linters/zizmor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rules:
2+
unpinned-uses:
3+
ignore:
4+
- ci.yaml

.github/workflows/ci.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
name: CI
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
12+
packages: read
13+
14+
jobs:
15+
lint:
16+
name: Lint
17+
runs-on: ubuntu-latest
18+
19+
permissions:
20+
statuses: write # To report GitHub Actions status checks
21+
22+
steps:
23+
- name: Checkout Code
24+
uses: actions/checkout@v6
25+
with:
26+
fetch-depth: 0
27+
persist-credentials: false
28+
29+
- name: Lint Code Base
30+
uses: super-linter/super-linter/slim@v8.3.0
31+
env:
32+
DEFAULT_BRANCH: main
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
VALIDATE_JSCPD: false
35+
VALIDATE_JAVASCRIPT_PRETTIER: false
36+
VALIDATE_MARKDOWN_PRETTIER: false
37+
VALIDATE_CHECKOV: false
38+
VALIDATE_GIT_COMMITLINT: false
39+
VALIDATE_BIOME_FORMAT: false
40+
VALIDATE_BIOME_LINT: false
41+
42+
dependabot:
43+
name: Dependabot auto-merge
44+
runs-on: ubuntu-latest
45+
needs: lint
46+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'HTTPArchive/dataform'
47+
48+
permissions:
49+
contents: write
50+
pull-requests: write
51+
52+
steps:
53+
- name: Dependabot metadata
54+
id: metadata
55+
uses: dependabot/fetch-metadata@v2
56+
with:
57+
github-token: "${{ secrets.GITHUB_TOKEN }}"
58+
59+
- name: Enable auto-merge for Dependabot PRs
60+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
61+
run: gh pr merge --auto --squash "$PR_URL"
62+
env:
63+
PR_URL: ${{github.event.pull_request.html_url}}
64+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/dependabot.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/linter.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)