Skip to content

Commit 1b3384e

Browse files
Copilotfelickz
andauthored
chore(security): cooldown, deterministic installs, harden labeler workflow
- dependabot.yml: add cooldown (default-days: 3) to all entries; replace github-actions groups with single actions:patterns:['*'] group - build.yml: replace npm install -g markdownlint-cli with npm ci + npx markdownlint; add root package.json + package-lock.json - requirements.txt: hash-pinned (uv pip compile --generate-hashes) for ghastoolkit + yq - coverage.yml, publish.yml, release.yml, version.yml: pip install -r requirements.txt --require-hashes - labeler.yml: remove actions/checkout step (actions/labeler@v6 does not need it) Co-authored-by: felickz <1760475+felickz@users.noreply.github.com>
1 parent db268f6 commit 1b3384e

1,456 files changed

Lines changed: 245680 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ updates:
1717
prefix-development: chore
1818
labels:
1919
- "Dependencies"
20+
cooldown:
21+
default-days: 3
2022
groups:
21-
production-dependencies:
22-
dependency-type: "production"
23-
development-dependencies:
24-
dependency-type: "development"
23+
actions:
24+
patterns: ["*"]
2525

2626
- package-ecosystem: "cargo"
2727
directory: "/"
@@ -35,6 +35,8 @@ updates:
3535
prefix-development: chore
3636
labels:
3737
- "Dependencies"
38+
cooldown:
39+
default-days: 3
3840
groups:
3941
production-dependencies:
4042
dependency-type: "production"

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,5 @@ jobs:
162162
- name: "Lint Markdown"
163163
if: steps.changes.outputs.src == 'true'
164164
run: |
165-
npm install -g markdownlint-cli
166-
markdownlint '**.md' --ignore node_modules --disable MD013
165+
npm ci
166+
npx markdownlint '**.md' --ignore node_modules --disable MD013

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: "Run Coverage Report"
1919
if: github.ref == 'refs/heads/main'
2020
run: |
21-
pip install ghastoolkit
21+
pip install -r requirements.txt --require-hashes
2222
./scripts/create-coverage.py report --markdown > $GITHUB_STEP_SUMMARY
2323
2424
- name: "Upload Coverage Report"

.github/workflows/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
pull-requests: write
1818

1919
steps:
20-
- uses: actions/checkout@v6
2120
- uses: actions/labeler@v6
2221
with:
2322
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
set -e
2727
28-
pip install yq
28+
pip install -r requirements.txt --require-hashes
2929
current_version=$(cat .release.yml | yq -r ".version")
3030
3131
released_version=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/:owner/:repo/releases/latest | jq -r ".tag_name")

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: get_version
3838
run: |
3939
set -e
40-
pip install yq
40+
pip install -r requirements.txt --require-hashes
4141
echo "version=$(cat .release.yml | yq -r ".version")" >> "$GITHUB_ENV"
4242
echo "release=true" >> "$GITHUB_ENV"
4343

.github/workflows/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
GH_TOKEN: ${{ github.token }}
3131
run: |
32-
pip install ghastoolkit
32+
pip install -r requirements.txt --require-hashes
3333
python ./.github/scripts/codeql.py version \
3434
--bump "${{ github.event.inputs.bump }}"
3535

node_modules/.bin/js-yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/katex

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/markdown-it

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)