Skip to content

SEC: fix insecure GitHub Actions settings and enable automated audits with zizmor + pre-commit #667

SEC: fix insecure GitHub Actions settings and enable automated audits with zizmor + pre-commit

SEC: fix insecure GitHub Actions settings and enable automated audits with zizmor + pre-commit #667

Workflow file for this run

name: Idefix CIs
on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
paths-ignore:
- '.github/ISSUE_TEMPLATE/*'
permissions: {}
jobs:
Linter:
# Don't do this in forks
if: ${{ github.repository == 'idefix-code/idefix' || github.repository == 'glesur/idefix' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
persist-credentials: false
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
with:
python-version: 3.x
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
- uses: pre-commit-ci/lite-action@50143aaf27e2c42e75a5e06185a471d9582e89df # v1.0.0
if: always()
icc-jobs:
needs: Linter
name: CPU Jobs (intel OneApi)
uses: ./.github/workflows/idefix-ci-jobs.yml
with:
TESTME_OPTIONS: -intel -Werror
IDEFIX_COMPILER: icc
gcc-jobs:
needs: Linter
name: CPU Jobs (gcc)
uses: ./.github/workflows/idefix-ci-jobs.yml
with:
TESTME_OPTIONS: -Werror
IDEFIX_COMPILER: gcc
cuda-jobs:
needs: Linter
name: CUDA Jobs
uses: ./.github/workflows/idefix-ci-jobs.yml
with:
TESTME_OPTIONS: -cuda -Werror
IDEFIX_COMPILER: nvcc