Skip to content

Commit 6b219ea

Browse files
MishaKavclaude
andauthored
Enable immutable releases for supply chain security (#256) (#258)
* Enable immutable releases for supply chain security (#256) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Harden update-main-version workflow inputs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 26f986d commit 6b219ea

5 files changed

Lines changed: 68 additions & 46 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish Immutable Action Version
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
packages: write
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/publish-immutable-action@v0.0.4
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update Main Version
2+
run-name: Move ${{ inputs.major_version }} to ${{ inputs.target }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
target:
8+
description: The tag or reference to use
9+
required: true
10+
major_version:
11+
type: choice
12+
description: The major version to update
13+
options:
14+
- v1
15+
16+
jobs:
17+
tag:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
steps:
22+
- uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Tag new target
27+
env:
28+
MAJOR_VERSION: ${{ inputs.major_version }}
29+
TARGET: ${{ inputs.target }}
30+
run: git tag -f "$MAJOR_VERSION" "$TARGET"
31+
32+
- name: Push new tag
33+
env:
34+
MAJOR_VERSION: ${{ inputs.major_version }}
35+
run: git push origin "$MAJOR_VERSION" --force

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog of the Pytest Coverage Comment
22

3+
## [Pytest Coverage Comment 1.7.0](https://github.com/MishaKav/pytest-coverage-comment/tree/v1.7.0)
4+
5+
**Release Date:** 2026-03-13
6+
7+
#### Changes
8+
9+
- enable immutable releases for supply chain security (#256)
10+
- bump `flatted` from 3.3.3 to 3.4.1 to fix security vulnerability
11+
12+
**Note:** No changes to action inputs, outputs, or behavior. This improves release security following [GitHub's immutable releases](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases) feature.
13+
314
## [Pytest Coverage Comment 1.6.0](https://github.com/MishaKav/pytest-coverage-comment/tree/v1.6.0)
415

516
**Release Date:** 2026-03-06

package-lock.json

Lines changed: 5 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pytest-coverage-comment",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"description": "Comments a pull request with the pytest code coverage badge, full report and tests summary",
55
"author": "Misha Kav",
66
"license": "MIT",
@@ -29,7 +29,6 @@
2929
"test:watch": "vitest",
3030
"test:coverage": "vitest run --coverage",
3131
"bump-version": "npm version patch",
32-
"update-v1-tag": "git tag v1 -f && git push origin v1 -f",
3332
"all": "npm run typecheck && npm run lint && npm run format && npm run test && npm run build"
3433
},
3534
"dependencies": {

0 commit comments

Comments
 (0)