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
5 changes: 3 additions & 2 deletions .github/workflows/upgrade-uv-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ on:
- cron: 37 11 * * 1
workflow_dispatch:

permissions: {} # disable all GitHub permissions for the workflow

jobs:
upgrade-requirements:
upgrade-requirements: # zizmor:ignore[excessive-permissions]
name: Upgrade uv.lock
runs-on: ubuntu-latest
if: github.repository == 'PlasmaPy/pyfaradaycup'
Expand Down Expand Up @@ -78,4 +80,3 @@ jobs:
branch: upgrade-uv-lock
base: main
delete-branch: true
token: ${{ steps.generate_token.outputs.token }}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token step is no longer required for this GitHub action, so we can remove it. A possible consequence is that GitHub workflows won't be run automatically on the pull requests to upgrade uv.lock, so we might need to update this later.

21 changes: 21 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# zizmor finds potential security vulnerabilities in GitHub workflow
# files. Documentation: https://woodruffw.github.io/zizmor

rules:
unpinned-uses:
config:
policies:
actions/*: ref-pin
astral-sh/setup-uv: ref-pin
codecov/codecov-action: ref-pin
conda-incubator/setup-miniconda: ref-pin
mamba-org/setup-micromamba: ref-pin
heliophysicsPy/pyhc-actions/*: ref-pin
pypa/*: ref-pin
scientific-python/*: ref-pin
ts-graphviz/setup-graphviz: ref-pin
Comment on lines +4 to +16

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are GitHub actions repositories that we trust enough to not pin to an exact hash. Copied from PlasmaPy.


# Put settings that we intend to fix later on below this line. If we
# decide that a potential security vulnerability does not necessitate a
# fix, append a comment like `# zizmor: ignore[unpinned-uses]` to the
# line or set the appropriate configuration options above.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import os

import nox
import nox.command
import nox_uv

nox.options.default_venv_backend = "uv"
Expand Down
Loading