mirror of
https://github.com/element-hq/synapse.git
synced 2025-04-16 07:06:21 +00:00
After the [recent supply chain attack](https://www.wiz.io/blog/new-github-action-supply-chain-attack-reviewdog-action-setup) in `tj-actions/changed-files` and actions based on it, it's become clear that relying on git tags to pin our dependencies is not enough (as tags can simply be replaced). Therefore we need to switch to hashes. Dependabot should continue to update these dependencies for us. Best reviewed commit-by-commit. Though if CI passes, we're *probably* fine.
24 lines
634 B
YAML
24 lines
634 B
YAML
on:
|
|
push:
|
|
branches: ["develop", "release-*"]
|
|
paths:
|
|
- poetry.lock
|
|
pull_request:
|
|
paths:
|
|
- poetry.lock
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check-sdists:
|
|
name: "Check locked dependencies have sdists"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
|
with:
|
|
python-version: '3.x'
|
|
- run: pip install tomli
|
|
- run: ./scripts-dev/check_locked_deps_have_sdists.py
|