mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-14 13:47:40 +00:00
chore: add tests, update docs and actions (#299)
* docs: update documentation * feat: validate-inputs has it's own pyproject * security: mask DOCKERHUB_PASSWORD * chore: add tokens, checkout, recrete docs, integration tests * fix: add `statuses: write` permission to pr-lint
This commit is contained in:
@@ -21,6 +21,7 @@ Run Prettier check on the repository with advanced configuration and reporting
|
||||
| `max-retries` | <p>Maximum number of retry attempts</p> | `false` | `3` |
|
||||
| `plugins` | <p>Comma-separated list of Prettier plugins to install</p> | `false` | `""` |
|
||||
| `check-only` | <p>Only check for formatting issues without fixing</p> | `false` | `true` |
|
||||
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
|
||||
|
||||
### Outputs
|
||||
|
||||
@@ -105,4 +106,10 @@ This action is a `composite` action.
|
||||
#
|
||||
# Required: false
|
||||
# Default: true
|
||||
|
||||
token:
|
||||
# GitHub token for authentication
|
||||
#
|
||||
# Required: false
|
||||
# Default: ""
|
||||
```
|
||||
|
||||
@@ -56,6 +56,10 @@ inputs:
|
||||
description: 'Only check for formatting issues without fixing'
|
||||
required: false
|
||||
default: 'true'
|
||||
token:
|
||||
description: 'GitHub token for authentication'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
outputs:
|
||||
files-checked:
|
||||
@@ -191,6 +195,11 @@ runs:
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
with:
|
||||
token: ${{ inputs.token || github.token }}
|
||||
|
||||
- name: Setup Node.js
|
||||
id: node-setup
|
||||
uses: ./node-setup
|
||||
@@ -423,7 +432,7 @@ runs:
|
||||
|
||||
- name: Upload Prettier Results
|
||||
if: always() && inputs.report-format == 'sarif'
|
||||
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
|
||||
uses: github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
|
||||
with:
|
||||
sarif_file: ${{ inputs.working-directory }}/reports/prettier.sarif
|
||||
category: prettier
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Validation rules for prettier-check action
|
||||
# Generated by update-validators.py v1.0.0 - DO NOT EDIT MANUALLY
|
||||
# Schema version: 1.0
|
||||
# Coverage: 100% (11/11 inputs)
|
||||
# Coverage: 100% (12/12 inputs)
|
||||
#
|
||||
# This file defines validation rules for the prettier-check GitHub Action.
|
||||
# Rules are automatically applied by validate-inputs action when this
|
||||
@@ -25,6 +25,7 @@ optional_inputs:
|
||||
- plugins
|
||||
- prettier-version
|
||||
- report-format
|
||||
- token
|
||||
- working-directory
|
||||
conventions:
|
||||
cache: boolean
|
||||
@@ -37,11 +38,12 @@ conventions:
|
||||
plugins: plugin_list
|
||||
prettier-version: semantic_version
|
||||
report-format: report_format
|
||||
token: github_token
|
||||
working-directory: file_path
|
||||
overrides: {}
|
||||
statistics:
|
||||
total_inputs: 11
|
||||
validated_inputs: 11
|
||||
total_inputs: 12
|
||||
validated_inputs: 12
|
||||
skipped_inputs: 0
|
||||
coverage_percentage: 100
|
||||
validation_coverage: 100
|
||||
@@ -49,7 +51,7 @@ auto_detected: true
|
||||
manual_review_required: false
|
||||
quality_indicators:
|
||||
has_required_inputs: false
|
||||
has_token_validation: false
|
||||
has_token_validation: true
|
||||
has_version_validation: true
|
||||
has_file_validation: true
|
||||
has_security_validation: false
|
||||
has_security_validation: true
|
||||
|
||||
Reference in New Issue
Block a user