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
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
rebase-strategy: "disabled"
labels: ["autoupdate"]
groups:
Expand All @@ -16,6 +18,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
rebase-strategy: "disabled"
labels: ["autoupdate"]
groups:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-with-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

jobs:
build-with-clang:
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Install mkl-service dependencies
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-with-standard-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [master]

permissions: read-all
permissions:
contents: read

jobs:
build-with-standard-clang:
Expand Down Expand Up @@ -42,6 +43,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Install mkl-service dependencies
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

jobs:
build:
Expand All @@ -27,6 +28,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/conda-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ on:
default: false
type: boolean

permissions: read-all
permissions:
contents: read

env:
module-name: mkl
Expand Down Expand Up @@ -69,6 +70,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Setup miniconda
Expand All @@ -95,15 +97,22 @@ jobs:
run: conda install -n base -y conda-build

- name: Store conda paths as envs
env:
CONDA_SUBDIR: ${{ inputs.conda-subdir }}
run: |
echo "CONDA_BLD=$CONDA/conda-bld/${{ inputs.conda-subdir }}" >> "$GITHUB_ENV"
echo "CONDA_BLD=$CONDA/conda-bld/${CONDA_SUBDIR}" >> "$GITHUB_ENV"
if [ "${{ inputs.build-wheels }}" = "true" ]; then
echo "WHEELS_OUTPUT_FOLDER=${{ github.workspace }}" >> "$GITHUB_ENV"
fi

- name: Build conda package
env:
CHANNELS_LIST: ${{ inputs.channels-list }}
RECIPE_DIR: ${{ inputs.recipe-dir }}
run: |
conda build --no-test --python "${{ matrix.python_spec || matrix.python }}" ${{ inputs.channels-list }} ${{ inputs.recipe-dir }}
# CHANNELS_LIST intentionally word-splits into multiple -c args
# shellcheck disable=SC2086
conda build --no-test --python "${{ matrix.python_spec || matrix.python }}" ${CHANNELS_LIST} "${RECIPE_DIR}"

- name: Upload artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/conda-package-cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
pull_request:

permissions: read-all
permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/openssf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ on:
branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all
permissions:
contents: read

jobs:
analysis:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
push:
branches: [master]

permissions: read-all
permissions:
contents: read

jobs:
pre-commit:
Expand All @@ -15,6 +16,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# use commit hash to make "no-commit-to-branch" check passing
ref: ${{ github.sha }}

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Security scan of GitHub Actions workflows (zizmor)

on:
push:
branches:
- master
pull_request:

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
zizmor:
name: Scan GitHub Actions workflows

runs-on: ubuntu-latest
timeout-minutes: 10

permissions:
contents: read # needed to clone the repo

steps:
- name: Checkout mkl-service repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3
with:
# Low/informational template-injection notes come from internally-defined
# values (no external input), so they are reported as annotations but do not gate CI
min-severity: medium
advanced-security: false
annotations: true
inputs: .github/
Loading