mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-06 22:44:37 +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:
@@ -11,6 +11,7 @@ Detects .NET SDK version from global.json or defaults to a specified version.
|
||||
| name | description | required | default |
|
||||
|-------------------|---------------------------------------------------------------------|----------|---------|
|
||||
| `default-version` | <p>Default .NET SDK version to use if global.json is not found.</p> | `true` | `7.0` |
|
||||
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
|
||||
|
||||
### Outputs
|
||||
|
||||
@@ -32,4 +33,10 @@ This action is a `composite` action.
|
||||
#
|
||||
# Required: true
|
||||
# Default: 7.0
|
||||
|
||||
token:
|
||||
# GitHub token for authentication
|
||||
#
|
||||
# Required: false
|
||||
# Default: ""
|
||||
```
|
||||
|
||||
@@ -15,6 +15,10 @@ inputs:
|
||||
description: 'Default .NET SDK version to use if global.json is not found.'
|
||||
required: true
|
||||
default: '7.0'
|
||||
token:
|
||||
description: 'GitHub token for authentication'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
outputs:
|
||||
dotnet-version:
|
||||
@@ -47,6 +51,11 @@ runs:
|
||||
|
||||
echo "Input validation completed successfully"
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
with:
|
||||
token: ${{ inputs.token || github.token }}
|
||||
|
||||
- name: Parse .NET Version
|
||||
id: parse-version
|
||||
uses: ./version-file-parser
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Validation rules for dotnet-version-detect action
|
||||
# Generated by update-validators.py v1.0.0 - DO NOT EDIT MANUALLY
|
||||
# Schema version: 1.0
|
||||
# Coverage: 100% (1/1 inputs)
|
||||
# Coverage: 100% (2/2 inputs)
|
||||
#
|
||||
# This file defines validation rules for the dotnet-version-detect GitHub Action.
|
||||
# Rules are automatically applied by validate-inputs action when this
|
||||
@@ -15,14 +15,16 @@ description: Detects .NET SDK version from global.json or defaults to a specifie
|
||||
generator_version: 1.0.0
|
||||
required_inputs:
|
||||
- default-version
|
||||
optional_inputs: []
|
||||
optional_inputs:
|
||||
- token
|
||||
conventions:
|
||||
default-version: semantic_version
|
||||
token: github_token
|
||||
overrides:
|
||||
default-version: dotnet_version
|
||||
statistics:
|
||||
total_inputs: 1
|
||||
validated_inputs: 1
|
||||
total_inputs: 2
|
||||
validated_inputs: 2
|
||||
skipped_inputs: 0
|
||||
coverage_percentage: 100
|
||||
validation_coverage: 100
|
||||
@@ -30,7 +32,7 @@ auto_detected: true
|
||||
manual_review_required: false
|
||||
quality_indicators:
|
||||
has_required_inputs: true
|
||||
has_token_validation: false
|
||||
has_token_validation: true
|
||||
has_version_validation: true
|
||||
has_file_validation: false
|
||||
has_security_validation: false
|
||||
has_security_validation: true
|
||||
|
||||
Reference in New Issue
Block a user