Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

Get Actions running and passing Zizmor checks (#770)

philipqueen0a8acbac9fd3
diff --git a/.github/workflows/coverage-testing.yml b/.github/workflows/coverage-testing.yml
index 23206146..dfac269d 100644
--- a/.github/workflows/coverage-testing.yml
+++ b/.github/workflows/coverage-testing.yml
@@ -10,18 +10,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Free up disk space
- uses: jlumbroso/free-disk-space@main
+ uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
large-packages: false
docker-images: false
swap-storage: false
- name: Set up Python 3.x
- uses: wntrblm/[email protected]
+ uses: wntrblm/nox@5a277b752f6094150e25237d47c34168e2b7526e
with:
python-versions: "3.12"
- name: Install libegl1
diff --git a/.github/workflows/diagnostics_calibration.yml b/.github/workflows/diagnostics_calibration.yml
index 6442efcb..467d4db8 100644
--- a/.github/workflows/diagnostics_calibration.yml
+++ b/.github/workflows/diagnostics_calibration.yml
@@ -27,12 +27,12 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v6
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: ${{ matrix.python-version }}
@@ -66,13 +66,13 @@ jobs:
source .venv/bin/activate || source .venv/Scripts/activate
python freemocap/diagnostics/calibration/calculate_calibration_diagnostics.py
- - uses: actions/upload-artifact@v6
+ - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: data_current_calibration_${{ runner.os }}
path: data_current_calibration.csv
- name: Upload OS-specific calibration
- uses: actions/upload-artifact@v6
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: test_data_calibration_files${{ matrix.os }}
path: |
@@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
@@ -99,7 +99,7 @@ jobs:
uv pip install pandas plotly==5.* jinja2 packaging
- name: Download OS calibration data
- uses: actions/download-artifact@v7
+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
with:
pattern: data_current_calibration_*
path: collected
@@ -111,13 +111,13 @@ jobs:
python freemocap/diagnostics/calibration/merge_calibration_data.py
- name: Upload calibration report
- uses: actions/upload-artifact@v6
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: calibration_diagnostics_report
path: freemocap/diagnostics/calibration_diagnostics.html
- name: Upload summary csv
- uses: actions/upload-artifact@v6
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: calibration_diagnostics_csv
path: freemocap/diagnostics/diagnostic_data/calibration_diagnostics_summary.csv
diff --git a/.github/workflows/flit_publish_to_pypi.yml b/.github/workflows/flit_publish_to_pypi.yml
index a091b8d4..14b95b5e 100644
--- a/.github/workflows/flit_publish_to_pypi.yml
+++ b/.github/workflows/flit_publish_to_pypi.yml
@@ -21,11 +21,11 @@ jobs:
environment: release
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Set up Python
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: '3.x'
- name: Install dependencies
diff --git a/.github/workflows/lint_actions_zizmor.yml b/.github/workflows/lint_actions_zizmor.yml
index 56bb88a1..81ef7fea 100644
--- a/.github/workflows/lint_actions_zizmor.yml
+++ b/.github/workflows/lint_actions_zizmor.yml
@@ -14,12 +14,12 @@ jobs:
security-events: write
steps:
- name: Checkout repository
- uses: actions/checkout@v6
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Install the latest version of uv
- uses: astral-sh/setup-uv@v7
+ uses: astral-sh/setup-uv@6ee6290f1cbc4156c0bdd66691b2c144ef8df19a
- name: Run zizmor 🌈
run: uvx zizmor --format sarif . > results.sarif
@@ -28,7 +28,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
- uses: github/codeql-action/upload-sarif@v4
+ uses: github/codeql-action/upload-sarif@1a97b0f94ec9297d6f58aefe5a6b5441c045bed4
with:
sarif_file: results.sarif
category: zizmor
\ No newline at end of file
diff --git a/.github/workflows/linting-flake8.yml b/.github/workflows/linting-flake8.yml
index 21a099a8..cd85fbc9 100755
--- a/.github/workflows/linting-flake8.yml
+++ b/.github/workflows/linting-flake8.yml
@@ -10,12 +10,14 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Set up Python 3.x
- uses: wntrblm/[email protected]
+ uses: wntrblm/nox@5a277b752f6094150e25237d47c34168e2b7526e
with:
python-versions: "3.12"
- name: Run noxfile
diff --git a/.github/workflows/linux_installer.yml b/.github/workflows/linux_installer.yml
index 86080e43..e3259584 100644
--- a/.github/workflows/linux_installer.yml
+++ b/.github/workflows/linux_installer.yml
@@ -8,8 +8,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: System Info
@@ -19,13 +21,13 @@ jobs:
gcc --version || true
env
- name: Set up Python 3.x
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.11'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- cache: 'pip'
+
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -57,7 +59,7 @@ jobs:
cd ${{ github.workspace }}
mv ${{ github.workspace }}/bin/pyapp freemocap_app && chmod +x freemocap_app
tar -czvf freemocap_app.tar.gz freemocap_app
- - uses: actions/upload-artifact@v6
+ - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: freemocap_linux_app
path: freemocap_app.tar.gz
diff --git a/.github/workflows/mac_installer.yml b/.github/workflows/mac_installer.yml
index 71c8a625..54525089 100644
--- a/.github/workflows/mac_installer.yml
+++ b/.github/workflows/mac_installer.yml
@@ -7,9 +7,11 @@ on:
jobs:
build:
- runs-on: macos-13
+ runs-on: macos-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: System Info
@@ -18,13 +20,12 @@ jobs:
gcc --version || true
env
- name: Set up Python 3.x
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.11'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -64,7 +65,7 @@ jobs:
cp ${{ github.workspace }}/freemocap/assets/mac_app_files/freemocap.icns ${{ github.workspace }}/freemocap.app/Contents/Resources
cp ${{ github.workspace }}/freemocap/assets/mac_app_files/Info.plist ${{ github.workspace }}/freemocap.app/Contents
tar -czvf freemocap.tar.gz freemocap.app
- - uses: actions/upload-artifact@v6
+ - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: freemocap_mac_app
path: freemocap.tar.gz
\ No newline at end of file
diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml
deleted file mode 100644
index f790cda2..00000000
--- a/.github/workflows/publish_to_pypi.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Upload Python Package
-
-on:
- push:
- branches:
- - missingno
-
-jobs:
- pypi-publish:
- name: upload release to PyPI
- runs-on: ubuntu-latest
- environment: release
- permissions:
- # IMPORTANT: this permission is mandatory for trusted publishing - https://docs.pypi.org/trusted-publishers/using-a-publisher/
- id-token: write
- steps:
- - uses: actions/checkout@v6
- with:
- persist-credentials: false
- - name: Set up Python
- uses: actions/setup-python@v6
- with:
- python-version: '3.11'
-
- - name: Install LLVM
- run: sudo apt-get update && sudo apt-get install -y llvm
-
-
- - name: Install Poetry
- run: |
- curl -sSL https://install.python-poetry.org | python3 -
-
- - name: Cache Poetry dependencies
- uses: actions/cache@v5
- with:
- path: ~/.cache/pypoetry
- key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
- restore-keys: |
- ${{ runner.os }}-poetry-
-
- - name: Update dependencies
- run: poetry update
-
- - name: Install dependencies
- run: poetry install
-
- - name: Build package
- run: poetry build
-
- - name: Publish package to pypi
- uses: pypa/gh-action-pypi-publish@release/v1
diff --git a/.github/workflows/python-testing.yml b/.github/workflows/python-testing.yml
index 322b9450..29fc036a 100755
--- a/.github/workflows/python-testing.yml
+++ b/.github/workflows/python-testing.yml
@@ -10,8 +10,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: System Info
@@ -21,7 +23,7 @@ jobs:
gcc --version || true
env
- name: Set up Python 3.x
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
diff --git a/.github/workflows/version-testing-1.yml b/.github/workflows/version-testing-1.yml
index ca1a611f..9a4a0c32 100755
--- a/.github/workflows/version-testing-1.yml
+++ b/.github/workflows/version-testing-1.yml
@@ -10,18 +10,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Free up disk space
- uses: jlumbroso/free-disk-space@main
+ uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
large-packages: false
docker-images: false
swap-storage: false
- name: Set up Python 3.x
- uses: wntrblm/[email protected]
+ uses: wntrblm/nox@5a277b752f6094150e25237d47c34168e2b7526e
with:
python-versions: "3.10"
- name: Install libegl1
diff --git a/.github/workflows/version-testing-2.yml b/.github/workflows/version-testing-2.yml
index c1ac9ba3..6e811828 100644
--- a/.github/workflows/version-testing-2.yml
+++ b/.github/workflows/version-testing-2.yml
@@ -10,18 +10,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Free up disk space
- uses: jlumbroso/free-disk-space@main
+ uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
large-packages: false
docker-images: false
swap-storage: false
- name: Set up Python 3.x
- uses: wntrblm/[email protected]
+ uses: wntrblm/nox@5a277b752f6094150e25237d47c34168e2b7526e
with:
python-versions: "3.11, 3.12"
- name: Install libegl1
diff --git a/.github/workflows/windows_installer.yml b/.github/workflows/windows_installer.yml
index 76cec44c..9e7a634a 100644
--- a/.github/workflows/windows_installer.yml
+++ b/.github/workflows/windows_installer.yml
@@ -8,8 +8,10 @@ on:
jobs:
build:
runs-on: windows-2022
+ permissions:
+ contents: read
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: System Info
@@ -17,13 +19,12 @@ jobs:
systeminfo || true
env
- name: Set up Python 3.x
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.11'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -68,7 +69,7 @@ jobs:
- name: Set Executable Icon
run: |
rcedit "freemocap_app.exe" --set-icon "${{ github.workspace }}/freemocap/assets/logo/freemocap_skelly_logo.ico"
- - uses: actions/upload-artifact@v6
+ - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: freemocap_windows_exe
path: freemocap_app.exe
\ No newline at end of file