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
52 changes: 52 additions & 0 deletions .github/workflows/lint-workflows.yml
Comment thread
RaoulSchaffranek marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: 'Lint Workflows'
on:
pull_request:
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
actionlint:
name: 'actionlint'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: 'Install actionlint'
env:
# Pin the release and verify it, both values should be updated together.
ACTIONLINT_VERSION: '1.7.12'
ACTIONLINT_SHA256: '8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8'
run: |
set -euxo pipefail
curl --fail --silent --show-error --location --output actionlint.tar.gz \
"https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
echo "${ACTIONLINT_SHA256} actionlint.tar.gz" | sha256sum --check --strict
tar --extract --gzip --file actionlint.tar.gz actionlint
- name: 'Run actionlint'
run: ./actionlint -color

zizmor:
name: 'zizmor'
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # upload SARIF, so findings annotate the diff
steps:
- name: 'Check out code'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: 'Run zizmor'
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
with:
version: '1.29.0'
online-audits: false
advanced-security: true
53 changes: 0 additions & 53 deletions .github/workflows/master-push.yml

This file was deleted.

31 changes: 18 additions & 13 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,40 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

# No job here writes to the repository, so the token stays read-only regardless of
# the repository default.
permissions:
contents: read

jobs:

build-and-test:
name: 'Poetry: Build and Test'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@v3
- name: 'Install Nix/Cachix'
uses: cachix/install-nix-action@v31.7.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
install_url: https://releases.nixos.org/nix/nix-2.32.0/install
extra_nix_config:
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
persist-credentials: false
# k-framework is a public cache, so it is declared as a substituter directly
# rather than through cachix-action, which needs no auth token this way.
- name: 'Install Nix'
uses: cachix/install-nix-action@9280e7aca88deada44c930f1e2c78e21c3ae3edd # v31.7.0
with:
name: k-framework
signingKey: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
skipPush: true
install_url: https://releases.nixos.org/nix/nix-2.32.0/install
extra_nix_config: |
substituters = https://cache.nixos.org https://k-framework.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= k-framework.cachix.org-1:jeyMXB2h28gpNRjuVkehg+zLj62ma1RnyyopA/20yFE=
- name: 'Install Python'
uses: actions/setup-python@v6
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.10'
- name: 'Get uv release'
id: uv_release
run: |
echo uv_version=$(cat deps/uv_release) >> "${GITHUB_OUTPUT}"
echo "uv_version=$(cat deps/uv_release)" >> "${GITHUB_OUTPUT}"
- name: 'Install uv'
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: ${{ steps.uv_release.outputs.uv_version }}
- name: 'Run code quality checks'
Expand Down
73 changes: 0 additions & 73 deletions .github/workflows/update-version.yml

This file was deleted.

Loading