Skip to content

Commit eddf827

Browse files
committed
build: explicitly set permissions and do not persist token to disk
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 80dff76 commit eddf827

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test_published_package.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
# Allow workflow to be manually run:
2929
workflow_dispatch:
3030

31+
# Global permissions:
32+
permissions:
33+
# Allow read-only access to the repository contents:
34+
contents: read
35+
3136
# Workflow jobs:
3237
jobs:
3338
test-published:
@@ -46,6 +51,9 @@ jobs:
4651
# Checkout the repository:
4752
- name: 'Checkout repository'
4853
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
54+
with:
55+
# Do not persist GitHub token in local Git configuration since no continued authentication is needed:
56+
persist-credentials: false
4957

5058
# Install Node.js:
5159
- name: 'Install Node.js'

0 commit comments

Comments
 (0)