Skip to content

Commit 6fb4b26

Browse files
pin actions to SHAs, add CI/PyPI badges
1 parent c767b47 commit 6fb4b26

4 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
python-version: ["3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
2121
with:
2222
persist-credentials: false
2323

2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

.github/workflows/pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
2222
with:
2323
persist-credentials: false
2424
- name: Setup Pages
25-
uses: actions/configure-pages@v5
25+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b
2626
- name: Build with Jekyll
27-
uses: actions/jekyll-build-pages@v1
27+
uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697
2828
with:
2929
source: .
3030
destination: ./_site
3131
- name: Upload artifact
32-
uses: actions/upload-pages-artifact@v3
32+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
3333

3434
deploy:
3535
environment:
@@ -40,4 +40,4 @@ jobs:
4040
steps:
4141
- name: Deploy to GitHub Pages
4242
id: deployment
43-
uses: actions/deploy-pages@v4
43+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
id-token: write
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
2525
with:
2626
persist-credentials: false
2727

2828
- name: Set up Python 3.12
29-
uses: actions/setup-python@v5
29+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
3030
with:
3131
python-version: "3.12"
3232

@@ -46,11 +46,11 @@ jobs:
4646

4747
- name: Publish to TestPyPI
4848
if: ${{ inputs.pypi_target == 'testpypi' }}
49-
uses: pypa/gh-action-pypi-publish@release/v1
49+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
5050
with:
5151
repository-url: https://test.pypi.org/legacy/
5252

5353
- name: Publish to PyPI
5454
if: ${{ inputs.pypi_target == 'pypi' || github.event_name == 'release' }}
55-
uses: pypa/gh-action-pypi-publish@release/v1
55+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
5656

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ Convert JSON files and datasets to SQL INSERT statements. Supports nested JSON,
99
[![GitHub release](https://img.shields.io/github/v/release/Coding-Dev-Tools/json2sql?label=latest)](https://github.com/Coding-Dev-Tools/json2sql/releases)
1010
![Python](https://img.shields.io/badge/python-3.10%2B-blue)
1111
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Coding-Dev-Tools/json2sql/blob/main/LICENSE)
12-
[![Open Source Alternative](https://img.shields.io/badge/Open_Source_Alternative-%E2%87%92-blue?logo=opensourceinitiative)](https://www.opensourcealternative.to/project/json2sql)
12+
|[![Open Source Alternative](https://img.shields.io/badge/Open_Source_Alternative-%E2%87%92-blue?logo=opensourceinitiative)](https://www.opensourcealternative.to/project/json2sql)
13+
[![CI](https://github.com/Coding-Dev-Tools/json2sql/actions/workflows/ci.yml/badge.svg)](https://github.com/Coding-Dev-Tools/json2sql/actions/workflows/ci.yml)
14+
[![PyPI](https://img.shields.io/pypi/v/json2sql-cli)](https://pypi.org/project/json2sql-cli/)
15+
1316

14-
**Why json2sql?** Every developer hits this: you need to load JSON data into a database, but you don't want to write a custom ETL script. Manually writing INSERT statements for hundreds of rows is error-prone. json2sql handles nested JSON, auto-infers types, and generates clean SQL in one command — no Python scripts, no ORM config, no boilerplate.
1517

1618
Real-world scenarios:
1719
- **Seeding test databases**: Convert API response fixtures into seed data for integration tests
@@ -122,7 +124,7 @@ json2sql is one of eleven CLI tools in the Revenue Holdings suite. One license c
122124
---
123125

124126
<p align="center">
125-
<sub>Part of <a href="https://coding-dev-tools.github.io/devforge/">Revenue Holdings</a> — CLI tools built by autonomous AI.</sub>
127+
<sub>Part of <a href="https://coding-dev-tools.github.io/revenueholdings.dev/">Revenue Holdings</a> — CLI tools built by autonomous AI.</sub>
126128
</p>
127129

128130
## License

0 commit comments

Comments
 (0)