Skip to content

Commit 23b1f43

Browse files
committed
adding more badges
1 parent 3aac35d commit 23b1f43

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ jobs:
5555
id: test-action
5656
uses: ./
5757
with:
58-
template: 'php'
59-
source: ''
58+
source: 'src'
6059
output: 'encrypted'
6160

6261
- name: Print Output

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
![Banner](banner.png)
22

3-
[![GitHub Super-Linter](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml)
3+
[![Check Transpiled JavaScript](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/check-dist.yml)
44
[![CI](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/ci.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/ci.yml)
5+
[![GitHub Super-Linter](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml)
6+
[![CodeQL](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/codeql-analysis.yml)
57

68
Automate and streamline IonCube encoding for your PHP project under Laravel, Joomla, WordPress frameworks with this powerful GitHub Action. Encode your source code effortlessly, ensuring an extra layer of security for your proprietary codebase.
79

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ inputs:
4949
# File inputs
5050
source:
5151
description: 'The source path or file to encode'
52-
required: true
52+
required: false
5353
default: ''
5454
type: string
5555
output:
5656
description: 'The output path or file encoded'
57-
required: true
57+
required: false
5858
default: 'encrypted'
5959
type: string
6060

src/inputs/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const core = require('@actions/core')
55
* @returns {string} Returns a validated input input.
66
*/
77
module.exports = function validateInput(standard = '') {
8-
let input = core.getInput('source', { required: true }) ?? standard
8+
let input = core.getInput('source') ?? standard
99

1010
core.debug(`Using input files: ${input === '' ? '.' : input}`)
1111

src/inputs/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const core = require('@actions/core')
55
* @returns {string} Returns a validated output input.
66
*/
77
module.exports = function validateOutput(standard = 'encrypted') {
8-
const output = core.getInput('output', { required: true }) ?? standard
8+
const output = core.getInput('output') ?? standard
99

1010
core.debug(`Using output path: ${output}`)
1111

0 commit comments

Comments
 (0)