diff --git a/.github/workflows/issues-jira.yml b/.github/workflows/issues-jira.yml deleted file mode 100644 index 5f65d0b..0000000 --- a/.github/workflows/issues-jira.yml +++ /dev/null @@ -1,118 +0,0 @@ -name: Create Jira Ticket for Github Issue - -on: - issues: - types: [opened, reopened] - -jobs: - issue-jira: - runs-on: ubuntu-latest - steps: - - name: Create Jira Issue - id: create_jira - uses: actions/github-script@v9 - with: - script: | - const baseUrl = process.env.JIRA_BASE_URL; - const userEmail = process.env.JIRA_USER_EMAIL; - const jiraToken = process.env.JIRA_API_TOKEN; - const jiraProject = process.env.JIRA_PROJECT; - const jiraIssueType = process.env.JIRA_ISSUE_TYPE; - const jiraFields = JSON.parse(process.env.ISSUES_JIRA_FIELDS); - - let requestBody = JSON.stringify({ - fields: { - ...jiraFields, - "project": { - "key": jiraProject - }, - "issuetype": { - "name": jiraIssueType - }, - "summary": "Github | Issue | ${{ github.event.repository.name }} | ${{ github.event.issue.title }}", - "description": { - "version": 1, - "type": "doc", - "content": [ - { - "type": "paragraph", - "content": [ - { - "type": "text", - "text": "Github Issue", - "marks": [ - { - "type": "strong" - } - ] - }, - { - "type": "text", - "text": ": " - }, - { - "type": "text", - "text": "${{ github.event.issue.html_url }}", - "marks": [ - { - "type": "link", - "attrs": { - "href": "${{ github.event.issue.html_url }}" - } - } - ] - } - ] - }, - { - "type": "paragraph", - "content": [ - { - "type": "text", - "text": "Description", - "marks": [ - { - "type": "strong" - } - ] - }, - { - "type": "text", - "text": ":" - } - ] - }, - { - "type": "codeBlock", - "content": [ - { - "type": "text", - "text": `${{ github.event.issue.body }}` - } - ] - } - ] - } - } - }); - - const response = await fetch(`${baseUrl}/rest/api/3/issue`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Authorization': `Basic ${btoa(userEmail + ":" + jiraToken)}` - }, - body: requestBody - }); - if (!response.ok) { - throw new Error(`JIRA API error! Status: ${response.status}`); - } - const data = await response.json(); - console.log('Jira Issue Created:', data.key); - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }} - JIRA_ISSUE_TYPE: ${{ secrets.JIRA_ISSUE_TYPE }} - ISSUES_JIRA_FIELDS: "${{ secrets.ISSUES_JIRA_FIELDS }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index b93db75..9e7c658 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v1.6.1 (2026-07-22) + +### Fix: Dependency security upgrades + +- Upgraded `black` to `>=26.3.1` to fix a high-severity Directory Traversal vulnerability ([SNYK-PYTHON-BLACK-15518063](https://security.snyk.io/vuln/SNYK-PYTHON-BLACK-15518063)). +- Upgraded `pip` to `>=26.1.2` to fix Arbitrary File Upload ([SNYK-PYTHON-PIP-16115367](https://security.snyk.io/vuln/SNYK-PYTHON-PIP-16115367)), Arbitrary Code Injection ([SNYK-PYTHON-PIP-16316401](https://security.snyk.io/vuln/SNYK-PYTHON-PIP-16316401)), and Directory Traversal ([SNYK-PYTHON-PIP-16964647](https://security.snyk.io/vuln/SNYK-PYTHON-PIP-16964647)) vulnerabilities. +- Upgraded `setuptools` to `>=83.0.0` to fix an Improper Unicode Encoding Handling vulnerability ([SNYK-PYTHON-SETUPTOOLS-17895075](https://security.snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-17895075)). + ## v1.6.0 (2026-06-22) ### New feature: Multi-region endpoint resolution diff --git a/contentstack_utils/__init__.py b/contentstack_utils/__init__.py index da70a53..a586d8d 100644 --- a/contentstack_utils/__init__.py +++ b/contentstack_utils/__init__.py @@ -39,6 +39,6 @@ __title__ = 'contentstack_utils' __author__ = 'contentstack' __status__ = 'debug' -__version__ = '1.6.0' +__version__ = '1.6.1' __endpoint__ = 'cdn.contentstack.io' __contact__ = 'support@contentstack.com' diff --git a/requirements.txt b/requirements.txt index 3883baa..2f61310 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ -pip~=26.0 -setuptools==80.3.1 +pip>=26.1.2 +setuptools>=83.0.0 lxml~=6.1.0 ruff==0.11.5 pytest>=7.0.0 pytest-cov>=4.0.0 pytest-html>=4.2.0 -black>=24.3.0 +black>=26.3.1 flake8>=6.0.0 isort>=5.0.0 diff --git a/setup.py b/setup.py index a3afc96..1471969 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def run(self): long_description_content_type="text/markdown", url="https://github.com/contentstack/contentstack-utils-python", license='MIT', - version='1.6.0', + version='1.6.1', install_requires=[ ],