Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/actions/code-quality/pre-commit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ runs:
steps:
# Set up Python environment with caching
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
with:
python-version: ${{ inputs.python-version }}
cache: pip # Enable pip caching
cache-dependency-path: .pre-commit-config.yaml

# Set up Node.js for JavaScript-related hooks
- name: Set up Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
with:
node-version: ${{ inputs.node-version }}

Expand All @@ -92,7 +92,7 @@ runs:
- name: Cache pre-commit hooks
if: inputs.cache == 'true'
id: pre-commit-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
path: ~/.cache/pre-commit
# Cache key includes Python and Node versions to ensure correct environment
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/pytest/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ runs:
steps:
# Set up Python with pip caching
- name: Set up Python environment
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
with:
python-version: ${{ inputs.python-version }}
cache: ${{ inputs.enable-cache == 'true' && 'pip' || '' }}
cache-dependency-path: ${{ inputs.enable-cache == 'true' && 'pyproject.toml' || '' }}

- name: Set up uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6

# Create and configure virtual environment
- name: Configure virtual environment
Expand Down Expand Up @@ -189,7 +189,7 @@ runs:

- name: Upload test results
if: always() && steps.test-execution.outcome == 'failure'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: pytest-results-${{ inputs.test-type }}
path: pytest_output.log
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/security/bandit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: "3.10"

Expand All @@ -101,7 +101,7 @@ runs:
- name: Get changed files
if: inputs.scan-scope == 'changed'
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1
with:
files: |
**/*.py
Expand Down Expand Up @@ -163,13 +163,13 @@ runs:
# Upload results after full scope analysis
- name: Upload reports
if: hashFiles('bandit-report.*') != '' # if any report is available
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: bandit-results
path: bandit-report.*
retention-days: 7
- name: Upload sarif
if: hashFiles('bandit-report.sarif') != '' # if SARIF is available, upload it
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/upload-sarif@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
with:
sarif_file: bandit-report.sarif
4 changes: 2 additions & 2 deletions .github/actions/security/clamav/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ runs:
- name: Get changed files
if: inputs.scan-scope == 'changed'
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1

- name: Run ClamAV scan
id: run-clamav
Expand Down Expand Up @@ -168,7 +168,7 @@ runs:
# Upload results
- name: Upload reports
if: hashFiles('security-results/clamav*') != '' # if any report is available
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: clamav-results
path: security-results/clamav
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/security/trivy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ runs:
- name: Get changed files
if: inputs.scan-scope == 'changed'
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1

- name: Cache Trivy vulnerability database
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
path: ~/.cache/trivy
key: trivy-db-${{ runner.os }}-${{ hashFiles('**/trivy-db/**') }}
Expand Down Expand Up @@ -220,13 +220,13 @@ runs:
# Upload results after full scope analysis
- name: Upload reports
if: hashFiles('security-results/trivy/*') != '' # if any report is available
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: trivy-results
path: security-results/trivy
retention-days: 7
- name: Upload sarif
if: hashFiles('security-results/trivy/trivy-results.sarif') != '' # if SARIF is available, upload it
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/upload-sarif@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
with:
sarif_file: security-results/trivy/trivy-results.sarif
8 changes: 4 additions & 4 deletions .github/actions/security/zizmor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
using: composite
steps:
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
with:
enable-cache: true
activate-environment: true
Expand All @@ -76,7 +76,7 @@ runs:
- name: Get changed files
if: inputs.scan-scope == 'changed'
id: changed-files
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v47.0.1
with:
files: .github/**

Expand Down Expand Up @@ -137,13 +137,13 @@ runs:
# Upload results after full scope analysis
- name: Upload reports
if: hashFiles('zizmor-report.*') != '' # if any report is available
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: zizmor-results
path: zizmor-report.*
retention-days: 7
- name: Upload sarif
if: hashFiles('zizmor-report.sarif') != '' # if SARIF is available, upload it
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/upload-sarif@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
with:
sarif_file: zizmor-report.sarif
10 changes: 5 additions & 5 deletions .github/workflows/_reusable-artifact-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ jobs:
outputs:
artifact-name: ${{ steps.set-artifact-name.outputs.name }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
with:
python-version: ${{ inputs.python-version }}
- name: Build package
Expand All @@ -96,13 +96,13 @@ jobs:
- name: Set artifact name
id: set-artifact-name
run: echo "name=dist-$(date +%s)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: ${{ steps.set-artifact-name.outputs.name }}
path: dist/
retention-days: 5
- name: Cache pip dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
path: |
~/.cache/pip
Expand All @@ -111,7 +111,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Cache build artifacts
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5
with:
path: |
dist/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_reusable-code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
lfs: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_reusable-pr-title-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
with:
python-version: ${{ inputs.python-version }}
cache: pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_reusable-production-release-process.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: ${{ inputs.artifact-name }}
path: dist

- name: Upload for production release
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: production-release-artifacts
path: dist/
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/_reusable-rc-release-process.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ jobs:
echo "url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT

- name: Download build artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: ${{ inputs.artifact-name }}
path: dist

- name: Download test results
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
pattern: "*-test-results"
merge-multiple: true
path: test-results

- name: Download security results
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
pattern: "*-security-results"
merge-multiple: true
path: security-results

- name: Download quality results
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
pattern: "*-quality-results"
merge-multiple: true
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
EOF

- name: Upload technical review report
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: technical-review-report
path: technical-review-report.md
Expand All @@ -194,7 +194,7 @@ jobs:
echo "url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT

- name: Download technical review report
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: technical-review-report
path: qa-review
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download technical review report
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: technical-review-report

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_reusable-release-publisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ jobs:
contents: write # is required by action-gh-release
id-token: write # Required for OIDC authentication with PyPI
steps:
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
name: ${{ inputs.artifact-name }}
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
- uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
- uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
tag_name: ${{ inputs.version }}
name: Release ${{ inputs.version }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/_reusable-security-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
if: contains(inputs.tools, 'bandit')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- name: Run Bandit scan
Expand All @@ -94,12 +94,12 @@ jobs:
if: contains(inputs.tools, 'semgrep')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
fetch-depth: 0
- name: Run Semgrep scan
uses: open-edge-platform/geti-ci/actions/semgrep@c36768f9b38f17ddbc9ebf803c0f8bc064ab1653
uses: open-edge-platform/geti-ci/actions/semgrep@4768cec2f0f8e7f780868dcfb8be2530d8176c06
with:
scan-scope: ${{ inputs.scan-scope }}
severity: ${{ inputs.severity-level }}
Expand All @@ -109,7 +109,7 @@ jobs:
if: contains(inputs.tools, 'trivy')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0 # Required for changed files detection
persist-credentials: false
Expand All @@ -131,7 +131,7 @@ jobs:
if: contains(inputs.tools, 'clamav')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- name: Run ClamAV scan
Expand All @@ -144,7 +144,7 @@ jobs:
if: contains(inputs.tools, 'zizmor')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- name: Run Zizmor scan
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:

# Download artifacts with error handling
- name: Download all results
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
continue-on-error: true # Don't fail if some tools didn't generate results
with:
pattern: "*-results"
Expand All @@ -186,7 +186,7 @@ jobs:
# Only upload if there are files
- name: Upload combined results
if: hashFiles('all-results/**/*') != ''
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: security-scan-results
path: all-results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_reusable-test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
run: |
nvidia-smi || echo "::error::No GPU found"

- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
- name: Run tests
Expand Down
Loading
Loading