Skip to content

Commit 9446f8a

Browse files
committed
cicd security
1 parent bf02500 commit 9446f8a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77

88
permissions:
9+
contents: read
910
pull-requests: write
1011

1112
jobs:

.github/workflows/lint-markdown.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ jobs:
3333
3434
- name: Lint markdown
3535
if: steps.changed-files.outputs.any_changed == 'true'
36-
run: npx markdownlint-cli@0.43.0 ${{ steps.changed-files.outputs.all_changed_files }} --ignore node_modules
36+
run: npx markdownlint-cli@0.43.0 $CHANGED_FILES --ignore node_modules
37+
env:
38+
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}

0 commit comments

Comments
 (0)