Skip to content

build(deps): Bump sphinx-copybutton from 0.5.0 to 0.5.2 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
58 changes: 58 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Bandit

on:
workflow_dispatch: { }
pull_request:
branches:
- main

jobs:
analyze:
runs-on: 'ubuntu-latest'
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install Bandit
shell: bash
run: pip install bandit[sarif]

- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.RELEASE_TOKEN }}

- name: Run Bandit - Generate SARIF report and check for HIGH severity issues
id: high_severity_check
shell: bash
run: |
# Run Bandit to generate SARIF report
bandit . -r -c ipas_default.config -f sarif -o results.sarif || true

# Check the SARIF report for high severity issues
if grep -q '"SEVERITY.HIGH": [1-9]' results.sarif; then
echo "HIGH severity issues found! Workflow will fail after reporting."
echo "high_severity_issues=true" >> $GITHUB_OUTPUT
else
echo "No HIGH severity issues found!"
fi

- name: Upload SARIF to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
category: bandit

- name: Fail workflow if HIGH severity issues were found
if: steps.high_severity_check.outputs.high_severity_issues == 'true'
shell: bash
run: |
echo "ERROR: HIGH severity security issues were found by Bandit."
echo "Review the security report and fix all HIGH severity issues before merging."
exit 1
43 changes: 43 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Check build

on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build-test:
runs-on: 'ubuntu-latest'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set Up Python
uses: actions/setup-python@v4
with:
cache: 'pip'
cache-dependency-path: './docs/requirements.txt'
python-version: '3.12.10'

- name: Install Dependencies
shell: bash
run: |
pip install -r ./docs/requirements.txt
pip install --upgrade build

- name: Build
shell: python
run: |
import os
import subprocess

def build_wheel():
if not os.path.exists('dist'):
os.makedirs('dist')
subprocess.check_call([ 'python', '-m', 'build', '--wheel' ])

build_wheel()

50 changes: 50 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: semantic release

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

env:
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }}

jobs:
release:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
fetch-depth: 0

- name: Reset branch
run: |
git reset --hard ${{ github.sha }}

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12.10'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install setuptools wheel python-semantic-release build

- name: Release
run: |
# symbolic link to fix an error when running a build_command
sudo ln -s /home/runner/_work/_tool/Python/3.12.10/x64/lib/libpython3.12.so.1.0 /usr/lib/libpython3.12.so.1.0
semantic-release version
semantic-release publish
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.idea
.vscode
__pycache__
build
dist
*.egg-info
build
docs/_build
docs\_build

# Common Python entries
*.py[cod]
*.so
*.dylib
*.egg
*.egg-info
.eggs
*.log
*.pot
.venv/

.DS_Store
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# CHANGELOG
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### License

<PROJECT NAME> is licensed under the terms in [LICENSE]<link to license file in repo>. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
Intel® Sphinx Theme is licensed under the terms in [LICENSE](https://github.com/intel/intel-sphinx-theme/blob/main/LICENSE.md). By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.

### Sign your work

Expand Down
Loading
Loading