mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-01-26 11:14:04 +00:00
* feat: detect permissions from actions * refactor(test): fix 25 SonarCloud issues by extracting test constants Resolved all SonarCloud code quality issues for PR #137: - Fixed 12 string duplication issues (S1192) - Fixed 13 naming convention issues (S100) Changes: - Centralized test constants in appconstants/test_constants.go * Added 9 parser test constants for YAML templates * Added 3 template test constants for paths and versions - Updated parser_test.go to use shared constants - Updated template_test.go to use shared constants - Renamed 13 test functions to camelCase (removed underscores) * chore: reduce code duplication * fix: implement cr fixes * chore: deduplication
24 lines
509 B
YAML
24 lines
509 B
YAML
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
|
|
# permissions:
|
|
# - contents: read # Required for checking out repository
|
|
---
|
|
name: Example Action
|
|
description: 'Test Action for gh-action-readme'
|
|
inputs:
|
|
input1:
|
|
description: First input
|
|
required: true
|
|
default: foo
|
|
input2:
|
|
description: Second input
|
|
required: false
|
|
outputs:
|
|
result:
|
|
description: Result output
|
|
runs:
|
|
using: "node20"
|
|
main: "dist/index.js"
|
|
branding:
|
|
icon: check
|
|
color: green
|