Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
e24e200
SK-1772: Beta Release for Python SDK V2 (#151)
saileshwar-skyflow Jan 9, 2025
22d1962
SK-1772: Update beta release workflow
saileshwar-skyflow Jan 9, 2025
31773fc
SK-1772: Update beta release workflow
saileshwar-skyflow Jan 9, 2025
a80205c
SK-1772: Updated beta release workflow file
saileshwar-skyflow Jan 10, 2025
073e799
SK-1772: Updated beta release workflow file
saileshwar-skyflow Jan 10, 2025
d7f96a0
SK-1772: Updated beta release workflow file
saileshwar-skyflow Jan 10, 2025
718e08d
SK-1772: Updated beta release workflow file
saileshwar-skyflow Jan 10, 2025
41b1c8c
SK-1772: Refactored workflows
saileshwar-skyflow Jan 10, 2025
09f524d
SK-1821: Refactor release pipelines (#153)
saileshwar-skyflow Jan 16, 2025
e923868
SK-1863: Added a migration guide section in the README for transition…
saileshwar-skyflow Feb 7, 2025
aca63e1
SK-1894: Update README for Python SDK V2 (#157)
saileshwar-skyflow Feb 18, 2025
b096bcf
SK-1906 Improve debugging in connections
skyflow-vivek Mar 4, 2025
74628e5
SK-1906: Fix invoke connection test case
saileshwar-skyflow Mar 4, 2025
9cd613b
SK-1934 Fix inconsistent error handling for invoke connections
skyflow-vivek Mar 6, 2025
6ee1883
SK-1874: Support for the combination of tokens and redaction type in …
saileshwar-skyflow Mar 10, 2025
3d4ee51
Merge pull request #162 from skyflowapi/SK-1906-improve-debugging-err…
skyflow-vivek Mar 10, 2025
5a63cc9
[AUTOMATED] Private Release 2.0.0b1.dev0+3d4ee51
skyflow-vivek Mar 10, 2025
b98aab0
Merge pull request #165 from skyflowapi/release/25.3.1
skyflow-vivek Mar 10, 2025
4e15606
SK-1772: Update enums (#167)
saileshwar-skyflow Mar 13, 2025
f760bc0
SK-1908: Migrate Python SDK from openapi generator to Fern SDK genera…
saileshwar-skyflow Mar 17, 2025
343b88c
[AUTOMATED] Private Release 2.0.0b2.dev0+f760bc0
saileshwar-skyflow Mar 17, 2025
5ef3fac
SK-2003: update readme
Apr 16, 2025
055d5b8
Merge pull request #170 from skyflowapi/SK-2003
amith-skyflow Apr 16, 2025
3f3a297
SK-1909 Update generated code
skyflow-vivek May 2, 2025
463ffc2
SK-1909 Handle API error cases after fern migration
skyflow-vivek May 2, 2025
f2ce452
SK-1909 Update fern generated code
skyflow-vivek May 12, 2025
a9a44d8
SK-1909 Handle invalid cluster ID error scenario
skyflow-vivek May 12, 2025
da88042
SK-1909 Fix inconsistencies and issues in Python SDK v2
skyflow-vivek May 14, 2025
d79488a
SK-1909 Fix issues in Python SDK v2
skyflow-vivek May 14, 2025
3a80017
Merge pull request #171 from skyflowapi/SK-1909-handle-api-error-case…
skyflow-vivek May 14, 2025
385617f
[AUTOMATED] Private Release 2.0.0b2.dev0+3a80017
skyflow-vivek May 14, 2025
9a1203a
SK-1909 Merge beta release branch into release branch
skyflow-vivek May 14, 2025
b018692
SK-1909 Update sample to trigger release
skyflow-vivek May 14, 2025
3d817ab
SK-1909 Trigger internal release
skyflow-vivek May 14, 2025
7385eb0
[AUTOMATED] Private Release 2.0.0b2.dev0+3d817ab
skyflow-vivek May 14, 2025
1816a92
SK-1911: add sky metadata headers
saileshwar-skyflow May 14, 2025
f38a37c
[AUTOMATED] Private Release 2.0.0b2.dev0+1816a92
saileshwar-skyflow May 14, 2025
6254896
SK-1911: add sky metadata header constant
saileshwar-skyflow May 14, 2025
97c9246
[AUTOMATED] Private Release 2.0.0b2.dev0+6254896
saileshwar-skyflow May 14, 2025
8824b35
Merge pull request #173 from skyflowapi/release/25.5.1
skyflow-vivek May 14, 2025
3af194c
[AUTOMATED] Public Release - 2.0.0b3
skyflow-vivek May 14, 2025
cdd67ed
Merge pull request #174 from skyflowapi/beta-release/25.5.3
skyflow-vivek May 16, 2025
e63345e
SK-2068: Detect Support in Python SDK. (#184)
saileshwar-skyflow Jun 17, 2025
e3279f0
SK-2142 return None in case of empty error for Data APIs and include …
raushan-skyflow Jul 8, 2025
dc36c86
SK-2199: Update Python SDK v2 with latest Detect API changes (v4.0) (…
saileshwar-skyflow Jul 24, 2025
1a640c8
[AUTOMATED] Public Release - 2.1.0b1
saileshwar-skyflow Jul 24, 2025
61e368f
SK-971 file upload support (#191)
raushan-skyflow Sep 10, 2025
3cafb58
[AUTOMATED] Private Release 2.1.0b1.dev0+61e368f
raushan-skyflow Sep 10, 2025
8e1d653
SK-2270 fix inconsistencies in python SDK V2 (#193)
raushan-skyflow Sep 17, 2025
aaa18c7
[AUTOMATED] Private Release 1.15.4.dev0+8e1d653
raushan-skyflow Sep 17, 2025
dab7b66
SK-2270: revert the fern generated detect changes (#201)
raushan-skyflow Sep 19, 2025
bdcc5ac
[AUTOMATED] Private Release 1.15.5.dev0+dab7b66
raushan-skyflow Sep 19, 2025
d9484b1
Merge pull request #208 from skyflowapi/beta-release/25.7.1
skyflow-vivek Sep 30, 2025
08b535a
SK-2353: Update generated code with updated openapi spec file. (#211)
saileshwar-skyflow Nov 6, 2025
ac51edf
[AUTOMATED] Private Release 1.15.8.dev0+08b535a
saileshwar-skyflow Nov 6, 2025
4c27775
SK-2353: fix indentation
saileshwar-skyflow Nov 6, 2025
9e85bba
[AUTOMATED] Private Release 1.15.8.dev0+4c27775
saileshwar-skyflow Nov 6, 2025
ba73553
SK-2385: add locations to the generated code
saileshwar-skyflow Nov 6, 2025
155a689
[AUTOMATED] Private Release 1.15.8.dev0+ba73553
saileshwar-skyflow Nov 6, 2025
3e794e3
SK-2385: update output transcriptions enum
saileshwar-skyflow Nov 7, 2025
342df8b
[AUTOMATED] Private Release 1.15.8.dev0+3e794e3
saileshwar-skyflow Nov 7, 2025
593ae32
SK-2385: Merge branch 'main' into release/25.9.1
saileshwar-skyflow Nov 7, 2025
a22b9c6
SK-1773 Add str for file upload response
skyflow-vivek Nov 11, 2025
255c8ec
[AUTOMATED] Private Release 1.15.8.dev0+a22b9c6
skyflow-vivek Nov 11, 2025
96d437e
Merge pull request #212 from skyflowapi/release/25.9.1
skyflow-vivek Nov 11, 2025
3fe7171
[AUTOMATED] Public Release - 2.0.0
skyflow-vivek Nov 11, 2025
a3f1f0f
SK-1773 Dummy change to trigger release
skyflow-vivek Nov 11, 2025
23c1cf9
Merge pull request #216 from skyflowapi/skyflow-vivek/SK-1773-python-…
skyflow-vivek Nov 11, 2025
080d5b5
SK-1773 Update release workflow
skyflow-vivek Nov 11, 2025
5604846
Merge pull request #217 from skyflowapi/skyflow-vivek/SK-1773-python-…
skyflow-vivek Nov 11, 2025
5691f5e
[AUTOMATED] Public Release - 2.0.0
skyflow-vivek Nov 11, 2025
a0a064d
SK-2392 Add sample and update README for upload file
skyflow-vivek Nov 13, 2025
d2698f7
Merge pull request #220 from skyflowapi/skyflow-vivek/SK-2392-update-…
skyflow-vivek Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
97 changes: 0 additions & 97 deletions .github/workflows/Gitleaks.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Public Beta Release

on:
push:
tags: '*.*.*b*'
paths-ignore:
- "setup.py"
- "*.yml"
- "*.md"
- "skyflow/utils/_version.py"

jobs:
build-and-deploy:
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
tag: 'beta'
secrets: inherit
48 changes: 5 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,9 @@ jobs:
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.PAT_ACTIONS }}
error: 'One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )'
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: create-json
id: create-json
uses: jsdaniell/create-json@1.1.2
with:
name: "credentials.json"
json: ${{ secrets.CREDENTIALS_FILE_STR }}

- name: 'Setup .env'
run: |
touch .env
echo VAULT_ID=${{secrets.VAULT_ID}} >> .env
echo VAULT_URL=${{secrets.VAULT_URL}} >> .env
echo DETOKENIZE_TEST_TOKEN=${{secrets.DETOKENIZE_TEST_TOKEN}} >> .env
echo DETOKENIZE_TEST_VALUE=${{secrets.DETOKENIZE_TEST_VALUE}} >> .env
echo CREDENTIALS_FILE_PATH=./credentials.json >> .env
echo CVV_GEN_CONNECTION_URL=${{secrets.CVV_GEN_CONNECTION_URL}} >> .env
echo VISA_CONNECTION_BASIC_AUTH=${{secrets.VISA_CONNECTION_BASIC_AUTH}} >> .env
echo SKYFLOW_ID1=${{secrets.SKYFLOW_ID1}} >> .env
echo SKYFLOW_ID2=${{secrets.SKYFLOW_ID2}} >> .env
echo SKYFLOW_ID3=${{secrets.SKYFLOW_ID3}} >> .env
echo MOCK_TOKEN=${{secrets.MOCK_TOKEN}} >> .env

- name: 'Run Tests'
run: |
python -m pip install --upgrade pip
pip install requests pyjwt datetime aiohttp cryptography python-dotenv coverage
coverage run --source skyflow -m unittest discover
- name: coverage
run: coverage xml -o test-coverage.xml
- name: Codecov
uses: codecov/codecov-action@v2.1.0
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: test-coverage.xml
name: codecov-skyflow-python
verbose: true
test:
uses: ./.github/workflows/shared-tests.yml
with:
python-version: '3.8'
secrets: inherit
5 changes: 3 additions & 2 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "setup.py"
- "*.yml"
- "*.md"
- "skyflow/version.py"
- "skyflow/utils/_version.py"
- "samples/**"
branches:
- release/*
Expand All @@ -19,4 +19,5 @@ jobs:
with:
ref: ${{ github.ref_name }}
tag: 'internal'
secrets: inherit
secrets: inherit

48 changes: 4 additions & 44 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,7 @@ on:
- main

jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: create-json
id: create-json
uses: jsdaniell/create-json@1.1.2
with:
name: "credentials.json"
json: ${{ secrets.CREDENTIALS_FILE_STR }}

- name: 'Setup .env'
run: |
touch .env
echo VAULT_ID=${{secrets.VAULT_ID}} >> .env
echo VAULT_URL=${{secrets.VAULT_URL}} >> .env
echo DETOKENIZE_TEST_TOKEN=${{secrets.DETOKENIZE_TEST_TOKEN}} >> .env
echo DETOKENIZE_TEST_VALUE=${{secrets.DETOKENIZE_TEST_VALUE}} >> .env
echo CREDENTIALS_FILE_PATH=./credentials.json >> .env
echo CVV_GEN_CONNECTION_URL=${{secrets.CVV_GEN_CONNECTION_URL}} >> .env
echo VISA_CONNECTION_BASIC_AUTH=${{secrets.VISA_CONNECTION_BASIC_AUTH}} >> .env
echo SKYFLOW_ID1=${{secrets.SKYFLOW_ID1}} >> .env
echo SKYFLOW_ID2=${{secrets.SKYFLOW_ID2}} >> .env
echo SKYFLOW_ID3=${{secrets.SKYFLOW_ID3}} >> .env
echo MOCK_TOKEN=${{secrets.MOCK_TOKEN}} >> .env

- name: 'Run Tests'
run: |
python -m pip install --upgrade pip
pip install requests pyjwt datetime aiohttp cryptography python-dotenv coverage
coverage run --source skyflow -m unittest discover
- name: coverage
run: coverage xml -o test-coverage.xml
- name: Codecov
uses: codecov/codecov-action@v2.1.0
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: test-coverage.xml
name: codecov-skyflow-python
verbose: true
test:
uses: ./.github/workflows/shared-tests.yml
with:
python-version: '3.8'
47 changes: 6 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,12 @@ on:
- "setup.py"
- "*.yml"
- "*.md"
- "skyflow/version.py"
- "skyflow/utils/_version.py"

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_ACTIONS }}
ref: main
fetch-depth: 0
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine

- name: Get Previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
with:
fallback: 1.0.0

- name: Bump Version
run: |
chmod +x ./ci-scripts/bump_version.sh
./ci-scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"

- name: Commit changes
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
git add setup.py
git add skyflow/version.py
git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
git push origin

- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: main
tag: 'public'
secrets: inherit
63 changes: 17 additions & 46 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,35 @@
name: Semgrep Scan
name: Semgrep

# Run workflow each time code is pushed to your repository.
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Give write permission to PRs
issues: write
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Semgrep and jq
run: |
sudo apt install python3-venv jq
python3 -m venv .venv
.venv/bin/pip install semgrep
- name: Install Semgrep
run: pip install semgrep

- name: Run Semgrep
run: |
source .venv/bin/activate
semgrep --config auto --severity ERROR --json-output=results.json --no-error
cat results.json | jq .results > pretty-results.json
semgrep --config .semgreprules/customRule.yml --config auto --severity ERROR --sarif . > results.sarif

- name: Display Raw Semgrep JSON Output
run: |
echo "Displaying raw Semgrep results..."
cat pretty-results.json

- name: Add comment on PR if findings are found
uses: actions/github-script@v6
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
script: |
// Ensure the context has a pull_request
if (context.payload.pull_request) {
const prNumber = context.payload.pull_request.number;
const fs = require('fs');
const results = JSON.parse(fs.readFileSync('pretty-results.json', 'utf8'));
const highFindings = results.filter(result => result.extra && result.extra.severity === 'ERROR');
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif

// Comment if findings exist
if (highFindings.length > 0) {
const comment = `**Semgrep Findings:** Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.`;
await github.rest.issues.createComment({
...context.repo,
issue_number: prNumber,
body: comment
});
} else {
const noIssuesComment = "**Semgrep findings:** No issues found, Good to merge.";
await github.rest.issues.createComment({
...context.repo,
issue_number: prNumber,
body: noIssuesComment
});
}
} else {
console.log("This workflow wasn't triggered by a pull request, so no comment will be added.");
}
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: semgrep-results
path: results.sarif
Loading
Loading