Skip to content

[Security] Pin GitHub Actions to a full-length commit SHA #29

[Security] Pin GitHub Actions to a full-length commit SHA

[Security] Pin GitHub Actions to a full-length commit SHA #29

Workflow file for this run

# .github/workflows/build.yaml
name: Cloudcraft-Python CI
on:
workflow_dispatch: {}
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout sources
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Setup Python
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Run tox
run: tox
- name: "Archive code coverage html data"
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
with:
name: code-coverage-report
path: htmlcov