Skip to content

Commit

Permalink
Merge pull request #25 from FernandVEYRIER/fix/permissions
Browse files Browse the repository at this point in the history
fix: workflow permissions
  • Loading branch information
0x4007 authored Mar 6, 2024
2 parents 03d0506 + 85f20d4 commit ced64ca
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion knip.ts → .github/knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const config: KnipConfig = {
ignoreDependencies: [],
};

export default config;
export default config;
2 changes: 1 addition & 1 deletion .github/workflows/jest-testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run Jest testing suite
on:
workflow_dispatch:
pull_request:
pull_request_target:
types: [ opened, synchronize ]

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/knip.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Knip

on:
pull_request:
pull_request_target:
workflow_dispatch:

permissions: write-all
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"format:lint": "eslint --fix .",
"format:prettier": "prettier --write .",
"format:cspell": "cspell **/*",
"knip": "knip",
"knip-ci": "knip --no-exit-code --reporter json",
"knip": "knip --config .github/knip.ts",
"knip-ci": "knip --no-exit-code --reporter json --config .github/knip.ts",
"prepare": "husky install",
"test": "jest --setupFiles dotenv/config --coverage",
"cy:open": "cypress open",
Expand Down
1 change: 1 addition & 0 deletions tests/__mocks__/db.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// cSpell:disable
import { factory, primaryKey } from "@mswjs/data";

/**
Expand Down

0 comments on commit ced64ca

Please sign in to comment.