Skip to content
Merged
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
labels: ["autoupdate"]
groups:
github-actions:
Expand All @@ -15,6 +17,8 @@ updates:
schedule:
interval: "weekly"
day: "saturday"
cooldown:
default-days: 7
labels: ["autoupdate"]
groups:
pre-commit:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/backfill-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
required: true
type: string

permissions: read-all
permissions:
contents: read

env:
CHECK_CONFIG_SCRIPT: "import sys; from packaging.version import parse; print('true' if parse('0.17.0') <= parse(sys.argv[1]) < parse('0.22.0') else 'false')"
Expand Down Expand Up @@ -67,8 +68,10 @@ jobs:
persist-credentials: false
- name: Inject new docs configuration
shell: bash -l {0}
env:
TAG: ${{ github.event.inputs.tag }}
run: |
NEEDS_CONFIG=$(python -c "${{ env.CHECK_CONFIG_SCRIPT }}" "${{ github.event.inputs.tag }}")
NEEDS_CONFIG=$(python -c "$CHECK_CONFIG_SCRIPT" "$TAG")

if [[ "${NEEDS_CONFIG}" == "true" ]]; then
git fetch origin master
Expand Down
5 changes: 4 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

env:
PACKAGE_NAME: dpctl
Expand Down Expand Up @@ -41,6 +42,7 @@ jobs:

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Set pkgs_dirs
Expand Down Expand Up @@ -109,6 +111,7 @@ jobs:
# the recipe takes the version from git describe
- 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
7 changes: 6 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

env:
PACKAGE_NAME: dpctl
Expand Down Expand Up @@ -41,6 +42,7 @@ jobs:

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Set pkgs_dirs
Expand Down Expand Up @@ -118,6 +120,7 @@ jobs:

- 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 Expand Up @@ -618,6 +621,7 @@ jobs:
- name: Checkout dpctl repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Download artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down Expand Up @@ -788,6 +792,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: IntelPython/devops-tools
fetch-depth: 0

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/generate-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches: [master]

permissions: read-all
permissions:
contents: read

jobs:
generate-coverage:
Expand Down Expand Up @@ -82,6 +83,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Install Lcov
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
pull_request:
types: [opened, synchronize, reopened, closed]

permissions: read-all
permissions:
contents: read

jobs:
build-and-deploy:
Expand Down Expand Up @@ -143,7 +144,7 @@ jobs:
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action != 'closed' }}
env:
PR_NUM: ${{ github.event.number }}
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0.8.3.12.0
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0
with:
message: |
View rendered docs @ https://intelpython.github.io/dpctl/pulls/${{ env.PR_NUM }}/index.html
Expand All @@ -152,7 +153,7 @@ jobs:
if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action == 'closed' }}
env:
PR_NUM: ${{ github.event.number }}
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0.8.3.12.0
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0
with:
message: |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers:
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/os-llvm-sycl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches: [master]

permissions: read-all
permissions:
contents: read

jobs:
install-compiler:
Expand Down Expand Up @@ -128,6 +129,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0

- name: Create set_allvars.sh
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 @@ -18,6 +19,7 @@ jobs:
- name: Checkout dpctl
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
ref: ${{ github.sha }} # use hash to pass no-commit-to-branch check
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests-from-dppy-bits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
- cron: '28 2 * * *'
workflow_dispatch:

permissions: read-all
permissions:
contents: read

env:
MODULE_NAME: dpctl
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 dpctl 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