diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 07d4472..9730b4c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,13 +8,16 @@ on: pull_request: types: [opened, synchronize, reopened] +permissions: {} + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: fetch-depth: 0 + persist-credentials: false - name: Build the Docker image run: docker compose build --no-cache @@ -35,6 +38,6 @@ jobs: - name: Sonar scan if: env.SONAR_TOKEN != null - uses: SonarSource/sonarqube-scan-action@v6 + uses: SonarSource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e # v8.2.0 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index d5c114e..0867598 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -8,13 +8,17 @@ on: pull_request: types: [opened, synchronize, reopened] +permissions: {} + jobs: vale: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - - uses: errata-ai/vale-action@v2.1.1 + - uses: errata-ai/vale-action@85f9f7f2c5f449ac0ae5b66662961bae3f77ca6a # v2.1.2 with: fail_on_error: true filter_mode: nofilter diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5e2f422..0e8096b 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -8,6 +8,8 @@ on: pull_request: types: [opened, synchronize, reopened] +permissions: {} + jobs: build: runs-on: ubuntu-latest @@ -18,10 +20,12 @@ jobs: - python-version: 3.12 - python-version: 3.13 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/zizmor-scan.yml b/.github/workflows/zizmor-scan.yml new file mode 100644 index 0000000..22c01cf --- /dev/null +++ b/.github/workflows/zizmor-scan.yml @@ -0,0 +1,25 @@ +--- +name: GitHub Actions Security Analysis with zizmor + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] + +permissions: {} + +jobs: + zizmor: + runs-on: ubuntu-latest + permissions: + security-events: write + steps: + - name: Checkout repository + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 + with: + persist-credentials: false + + - name: Run zizmor + uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6