Skip to content

Commit 17a0c33

Browse files
committed
use uv for all actions
1 parent 9e4e063 commit 17a0c33

5 files changed

Lines changed: 202 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,13 @@ jobs:
212212
with:
213213
fetch-depth: 0
214214

215-
- name: Setup Python
216-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
215+
- name: Install uv
216+
uses: astral-sh/setup-uv@v5
217217
with:
218218
python-version: "3.12"
219-
cache: "pip"
220-
cache-dependency-path: "docs/requirements.txt"
221219

222220
- name: Install MkDocs and dependencies
223-
run: pip install -r docs/requirements.txt
221+
run: uv pip install --system -r docs/requirements.txt
224222

225223
- name: Install terraform-docs
226224
run: |

.github/workflows/deploy_docs.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,26 @@ jobs:
4646
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4747
with:
4848
fetch-depth: 0 # Full history for git revision dates
49-
50-
- name: Setup Python
51-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
49+
50+
- name: Install uv
51+
uses: astral-sh/setup-uv@v5
5252
with:
53-
python-version: '3.12'
54-
cache: 'pip'
55-
cache-dependency-path: 'docs/requirements.txt'
56-
53+
python-version: "3.12"
54+
5755
- name: Install MkDocs and dependencies
58-
run: |
59-
pip install -r docs/requirements.txt
60-
56+
run: uv pip install --system -r docs/requirements.txt
57+
6158
- name: Install terraform-docs
6259
run: |
6360
wget -O /tmp/terraform-docs.tar.gz https://github.com/terraform-docs/terraform-docs/releases/download/${TERRAFORM_DOCS_VERSION}/terraform-docs-${TERRAFORM_DOCS_VERSION}-linux-amd64.tar.gz
6461
tar -xzf /tmp/terraform-docs.tar.gz -C /tmp
6562
sudo mv /tmp/terraform-docs /usr/local/bin/
6663
chmod +x /usr/local/bin/terraform-docs
6764
terraform-docs --version
68-
65+
6966
- name: Generate Terraform documentation
7067
run: bash scripts/gen-docs.sh
71-
68+
7269
- name: Setup Pages
7370
id: pages
7471
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
@@ -87,11 +84,11 @@ jobs:
8784
path.write_text(text)
8885
print(f'site_url -> {site_url}')
8986
" "$SITE_URL"
90-
87+
9188
- name: Build with MkDocs
9289
run: |
9390
mkdocs build --strict --site-dir ./site
94-
91+
9592
- name: Upload artifact
9693
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
9794
with:
@@ -108,4 +105,4 @@ jobs:
108105
steps:
109106
- name: Deploy to GitHub Pages
110107
id: deployment
111-
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
108+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ repos:
8181

8282
- id: check-yaml
8383
name: Check YAML syntax
84-
args: [--safe]
8584
exclude: ^\.terraform/.*$
8685

8786
- id: check-json

.secrets.baseline

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
"version": "1.4.0",
3+
"plugins_used": [
4+
{
5+
"name": "ArtifactoryDetector"
6+
},
7+
{
8+
"name": "AWSKeyDetector"
9+
},
10+
{
11+
"name": "AzureStorageKeyDetector"
12+
},
13+
{
14+
"name": "Base64HighEntropyString",
15+
"limit": 4.5
16+
},
17+
{
18+
"name": "BasicAuthDetector"
19+
},
20+
{
21+
"name": "CloudantDetector"
22+
},
23+
{
24+
"name": "DiscordBotTokenDetector"
25+
},
26+
{
27+
"name": "GitHubTokenDetector"
28+
},
29+
{
30+
"name": "HexHighEntropyString",
31+
"limit": 3.0
32+
},
33+
{
34+
"name": "IbmCloudIamDetector"
35+
},
36+
{
37+
"name": "IbmCosHmacDetector"
38+
},
39+
{
40+
"name": "JwtTokenDetector"
41+
},
42+
{
43+
"name": "KeywordDetector",
44+
"keyword_exclude": ""
45+
},
46+
{
47+
"name": "MailchimpDetector"
48+
},
49+
{
50+
"name": "NpmDetector"
51+
},
52+
{
53+
"name": "PrivateKeyDetector"
54+
},
55+
{
56+
"name": "SendGridDetector"
57+
},
58+
{
59+
"name": "SlackDetector"
60+
},
61+
{
62+
"name": "SoftlayerDetector"
63+
},
64+
{
65+
"name": "SquareOAuthDetector"
66+
},
67+
{
68+
"name": "StripeDetector"
69+
},
70+
{
71+
"name": "TwilioKeyDetector"
72+
}
73+
],
74+
"filters_used": [
75+
{
76+
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
77+
},
78+
{
79+
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
80+
"min_level": 2
81+
},
82+
{
83+
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
84+
},
85+
{
86+
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
87+
},
88+
{
89+
"path": "detect_secrets.filters.heuristic.is_lock_file"
90+
},
91+
{
92+
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
93+
},
94+
{
95+
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
96+
},
97+
{
98+
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
99+
},
100+
{
101+
"path": "detect_secrets.filters.heuristic.is_sequential_string"
102+
},
103+
{
104+
"path": "detect_secrets.filters.heuristic.is_swagger_file"
105+
},
106+
{
107+
"path": "detect_secrets.filters.heuristic.is_templated_secret"
108+
}
109+
],
110+
"results": {
111+
"docs/configuration/environment-variables.md": [
112+
{
113+
"type": "Secret Keyword",
114+
"filename": "docs/configuration/environment-variables.md",
115+
"hashed_secret": "77d7fbd79473578bf5fd3e21ef7d31c685189db7",
116+
"is_verified": false,
117+
"line_number": 225
118+
}
119+
],
120+
"modules/credentials/tests/unit.tftest.hcl": [
121+
{
122+
"type": "Secret Keyword",
123+
"filename": "modules/credentials/tests/unit.tftest.hcl",
124+
"hashed_secret": "e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4",
125+
"is_verified": false,
126+
"line_number": 73
127+
},
128+
{
129+
"type": "Private Key",
130+
"filename": "modules/credentials/tests/unit.tftest.hcl",
131+
"hashed_secret": "be4fc4886bd949b369d5e092eb87494f12e57e5b",
132+
"is_verified": false,
133+
"line_number": 116
134+
}
135+
],
136+
"modules/environment_variable_job_overrides/tests/unit.tftest.hcl": [
137+
{
138+
"type": "Secret Keyword",
139+
"filename": "modules/environment_variable_job_overrides/tests/unit.tftest.hcl",
140+
"hashed_secret": "40a5c8ef8752e7d2136592c80360ac569d436f10",
141+
"is_verified": false,
142+
"line_number": 53
143+
}
144+
],
145+
"modules/global_connections/main.tf": [
146+
{
147+
"type": "Secret Keyword",
148+
"filename": "modules/global_connections/main.tf",
149+
"hashed_secret": "e8ce9c9856da1283b100a39d24297666825ffce1",
150+
"is_verified": false,
151+
"line_number": 14
152+
}
153+
],
154+
"topologies/basic/.env.example": [
155+
{
156+
"type": "Secret Keyword",
157+
"filename": "topologies/basic/.env.example",
158+
"hashed_secret": "6684fef897eb3e7a377a83c9b500c808d405045f",
159+
"is_verified": false,
160+
"line_number": 49
161+
},
162+
{
163+
"type": "Secret Keyword",
164+
"filename": "topologies/basic/.env.example",
165+
"hashed_secret": "23b7c94971eba8e0f5f2affaef3b894c47dc86fe",
166+
"is_verified": false,
167+
"line_number": 50
168+
},
169+
{
170+
"type": "Secret Keyword",
171+
"filename": "topologies/basic/.env.example",
172+
"hashed_secret": "981eb7e146cab5b17b4c7f5f12af441d36d0cc36",
173+
"is_verified": false,
174+
"line_number": 58
175+
},
176+
{
177+
"type": "Secret Keyword",
178+
"filename": "topologies/basic/.env.example",
179+
"hashed_secret": "4828aeee87a0527949cb106d4c50ae10fd333cef",
180+
"is_verified": false,
181+
"line_number": 106
182+
}
183+
]
184+
},
185+
"generated_at": "2026-04-23T18:34:29Z"
186+
}

validate/action.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ inputs:
1717
runs:
1818
using: composite
1919
steps:
20-
- name: Set up Python
21-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
22-
with:
23-
python-version: "3.x"
24-
25-
- name: Install check-jsonschema
26-
shell: bash
27-
run: pip install --quiet "check-jsonschema==0.37.1"
28-
2920
- name: Validate YAML against schema
3021
shell: bash
3122
env:
@@ -37,5 +28,5 @@ runs:
3728
exit 1
3829
fi
3930
echo "Validating '${INPUT_FILE}' against dbt Cloud YAML schema v1..."
40-
check-jsonschema --schemafile "${SCHEMA}" "${INPUT_FILE}"
31+
uvx "check-jsonschema==0.37.1" --schemafile "${SCHEMA}" "${INPUT_FILE}"
4132
echo "Validation passed."

0 commit comments

Comments
 (0)