Skip to content

Prevent malformed configuration files from being merged to your project.

License

Notifications You must be signed in to change notification settings

Namchee/konfigured

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Konfigured

Go Version Badge Go Report Card

Prevent malformed configuration files from being merged to your project. No more breaking builds caused by bad configuration files.

Usage

You can integrate Konfigured to your existing GitHub action workflow by using Namchee/konfigured@<version> in one of your jobs using the YAML syntax.

Below is the example of integrating Konfigured to your workflow in your GitHub action workflow.

on:
  pull_request:

jobs:
  cpr:
    runs-on: ubuntu-latest
    steps:
      - name: Validate configuration file
        uses: Namchee/konfigured@v(version)
        with:
          token: <YOUR_GITHUB_ACCESS_TOKEN_HERE>

Please refer to GitHub workflow syntax for more advanced usage.

Access token is required. Please generate one or use ${{ secrets.GITHUB_TOKEN }} as your access token and the github-actions bot will run the job for you.

Supported File Type

Below are the currently supported configuration files that will be validated by Konfigured:

  • .ini
  • .json
  • .yaml, .yml
  • .toml
  • .hcl

Inputs

You can customize this actions with these following options (fill it on with section):

Name Required? Default Value Description
token true GitHub access token to interact with the GitHub API. It is recommended to store this token with GitHub Secrets. To support automatic close, labeling, and comment report, please grant a write access to the token
newline false false Require all valid configuration file to end with newline.
include false **/*.{json,ini,yaml,yml,toml,hcl} Files to be validated in glob pattern. If this option is omitted, the action will validate all configuration file.

License

This project is licensed under the MIT License

About

Prevent malformed configuration files from being merged to your project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published