2 Commits

Author SHA1 Message Date
semantic-release-bot
7c563d492b chore(release): 1.0.2 [skip ci]
## [1.0.2](https://github.com/ivuorinen/base-configs-stylelint/compare/v1.0.1...v1.0.2) (2026-02-28)

### Bug Fixes

* **ci:** harden workflow permissions and use GITHUB_TOKEN for releases ([#109](https://github.com/ivuorinen/base-configs-stylelint/issues/109)) ([9992182](9992182f9e))
2026-02-28 08:10:31 +00:00
9992182f9e fix(ci): harden workflow permissions and use GITHUB_TOKEN for releases (#109)
Replace overly broad top-level permissions (read-all) with empty
defaults and declare minimal job-level permissions. Switch publish
workflow from secrets.PAT to secrets.GITHUB_TOKEN so semantic-release
can comment on PRs and issues.
2026-02-28 10:08:15 +02:00
7 changed files with 16 additions and 15 deletions

View File

@@ -11,15 +11,15 @@ on:
- cron: '30 1 * * 0' # Run at 1:30 AM UTC every Sunday
merge_group:
permissions:
actions: read
contents: read
permissions: {}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:

View File

@@ -12,7 +12,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
permissions: {}
jobs:
Linter:

View File

@@ -6,7 +6,7 @@ on:
branches:
- main
permissions: read-all
permissions: {}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -20,8 +20,6 @@ jobs:
statuses: write
contents: read
packages: read
issues: write
pull-requests: write
steps:
- name: Run PR Lint
@@ -72,5 +70,5 @@ jobs:
- name: Semantic Release
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -8,10 +8,7 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
packages: read
statuses: read
permissions: {}
jobs:
stale:
@@ -19,7 +16,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
steps:

View File

@@ -20,7 +20,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
permissions: {}
jobs:
labels:

View File

@@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.0.2](https://github.com/ivuorinen/base-configs-stylelint/compare/v1.0.1...v1.0.2) (2026-02-28)
### Bug Fixes
* **ci:** harden workflow permissions and use GITHUB_TOKEN for releases ([#109](https://github.com/ivuorinen/base-configs-stylelint/issues/109)) ([9992182](https://github.com/ivuorinen/base-configs-stylelint/commit/9992182f9eaa725a3947493aaeca6025b0e2ca77))
## [1.0.1](https://github.com/ivuorinen/base-configs-stylelint/compare/v1.0.0...v1.0.1) (2026-02-28)
# Change Log

View File

@@ -1,6 +1,6 @@
{
"name": "@ivuorinen/stylelint-config",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",
"description": "ivuorinen's shareable configuration for stylelint.",
"author": {