Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump zricethezav/gitleaks from 8.13.0 to 8.15.0 #71

Merged
merged 5 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .eslintrc.json

This file was deleted.

15 changes: 10 additions & 5 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ assignees: fabasoad

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
#### Is your feature request related to a problem? Please describe

A clear and concise description of what the problem is. Ex. I'm always frustrated
when [...]

#### Describe the solution you'd like

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
#### Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
#### Additional context

Add any other context or screenshots about the feature request here.
5 changes: 2 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ Closes #{IssueNumber}

Please check if your PR fulfills the following requirements:

- [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/setup-brainfuck-action/CONTRIBUTING.md) doc.
- [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/setup-brainfuck-action/CONTRIBUTING.md)
doc.
- [ ] Tests for the changes have been added (for bug fixes / features).
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features).
- [ ] Build (`yarn run build`) was run locally and any changes were pushed.
- [ ] Tests (`yarn test`) has passed locally and any fixes were made for failures.

## Pull request type

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Create release
on:
push:
tags:
- 'v*'
- 'v*.*.*'

jobs:
create_release:
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/security-tests.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/unit-tests.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.nyc_output
.vscode/*
!.vscode/settings.json
.DS_Store
.idea
coverage
node_modules
.vscode
1 change: 0 additions & 1 deletion .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
---
default: true
line_length: false
1 change: 0 additions & 1 deletion .markdownlintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .nycrc.json

This file was deleted.

34 changes: 2 additions & 32 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,18 @@
---
default_stages: ["commit"]
exclude: ^(.gitleaks\.toml|dist/.*\.js|coverage/.*)$
exclude: ^\.gitleaks\.toml$
repos:
- repo: local
hooks:
- id: build
name: Build
entry: yarn run build
language: system
pass_filenames: false
verbose: true
- id: test
name: Unit tests
entry: yarn test
language: system
pass_filenames: false
verbose: true
stages: ["push"]
# Security
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
stages: ["commit", "push"]
- repo: https://github.com/zricethezav/gitleaks
rev: v8.13.0
rev: v8.15.0
hooks:
- id: gitleaks
stages: ["commit", "push"]
- repo: https://github.com/fabasoad/pre-commit-snyk
rev: v0.1.0
hooks:
- id: snyk-test
stages: ["push"]
# TypeScript
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.25.0
hooks:
- id: eslint
args: ['--fix']
files: \.[jt]sx?$
types: [file]
exclude: ^dist/.*\.js$
# Markdown
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
Expand All @@ -68,4 +39,3 @@ repos:
- id: trailing-whitespace
ci:
autofix_prs: false
skip: [build, eslint, test]
37 changes: 23 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Contributing guidance

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
We love your input! We want to make contributing to this project as easy and
transparent as possible, whether it's:

- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer

## We Develop with GitHub
## We develop with GitHub

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
We use GitHub to host code, to track issues and feature requests, as well as
accept pull requests.

## We Use [GitHub Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
## We use GitHub flow, so all code changes happen through pull requests

Pull requests are the best way to propose changes to the codebase (we use [GitHub Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
Pull requests are the best way to propose changes to the codebase (we use
[GitHub flow](https://guides.github.com/introduction/flow/index.html)). We
actively welcome your pull requests:

1. Fork the repo and create your branch from `main`.
2. If you've added code that should be tested, add tests.
Expand All @@ -25,26 +29,31 @@ Pull requests are the best way to propose changes to the codebase (we use [GitHu

## Any contributions you make will be under the MIT Software License

In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
In short, when you submit code changes, your submissions are understood to be
under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers
the project. Feel free to contact the maintainers if that's a concern.

## Report bugs using [GitHub Issues](https://github.com/fabasoad/setup-brainfuck-action/issues)

We use GitHub issues to track public bugs. Report a bug by opening a new issue. It's that easy!
We use GitHub issues to track public bugs. Report a bug by opening a new issue.
It's that easy!

## Create issue using provided GitHub issue templates

This repository has issue templates for bug report and feature request. Please use them to create an issue and fill all required fields.
This repository has issue templates for bug report and feature request. Please
use them to create an issue and fill all required fields.

## Use a Consistent Coding Style
## Use a consistent coding style

Please follow all the rules from [this](https://google.github.io/styleguide/jsguide.html) great guide provided by Google for coding style except of following coding styles:

- File names must be all lowercase and may include dashes (-).
Please follow all the rules from [this](https://google.github.io/styleguide/shellguide.html)
great guide provided by Google for coding style.

## License

By contributing, you agree that your contributions will be licensed under its MIT License.
By contributing, you agree that your contributions will be licensed under its
MIT License.

## References

This document was adapted from the open-source contribution guidelines provided by [briandk](https://gist.github.com/briandk/3d2e8b3ec8daf5a27a62).
This document was adapted from the open-source contribution guidelines provided
by [briandk](https://gist.github.com/briandk/3d2e8b3ec8daf5a27a62).
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# Setup Brainfuck

![Releases](https://img.shields.io/github/v/release/fabasoad/setup-brainfuck-action?include_prereleases) ![Unit Tests](https://github.com/fabasoad/setup-brainfuck-action/workflows/Unit%20Tests/badge.svg) ![Functional Tests](https://github.com/fabasoad/setup-brainfuck-action/workflows/Functional%20Tests/badge.svg) ![Security Tests](https://github.com/fabasoad/setup-brainfuck-action/workflows/Security%20Tests/badge.svg) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/fabasoad/setup-brainfuck-action/main.svg)](https://results.pre-commit.ci/latest/github/fabasoad/setup-brainfuck-action/main) [![Total alerts](https://img.shields.io/lgtm/alerts/g/fabasoad/setup-brainfuck-action.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/fabasoad/setup-brainfuck-action/alerts/) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/fabasoad/setup-brainfuck-action.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/fabasoad/setup-brainfuck-action/context:javascript) [![Maintainability](https://api.codeclimate.com/v1/badges/a65b7469f96f9a2bfdca/maintainability)](https://codeclimate.com/github/fabasoad/setup-brainfuck-action/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a65b7469f96f9a2bfdca/test_coverage)](https://codeclimate.com/github/fabasoad/setup-brainfuck-action/test_coverage) [![Known Vulnerabilities](https://snyk.io/test/github/fabasoad/setup-brainfuck-action/badge.svg?targetFile=package.json)](https://snyk.io/test/github/fabasoad/setup-brainfuck-action?targetFile=package.json)
![Releases](https://img.shields.io/github/v/release/fabasoad/setup-brainfuck-action?include_prereleases)
![Functional Tests](https://github.com/fabasoad/setup-brainfuck-action/workflows/Functional%20Tests/badge.svg)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/fabasoad/setup-brainfuck-action/main.svg)](https://results.pre-commit.ci/latest/github/fabasoad/setup-brainfuck-action/main)

This action installs one of the brainfuck interpreters called [brainfucky](https://pypi.org/project/brainfucky/).

## Inputs

| Name | Required | Description | Default | Possible values |
|---------|----------|---------------------------------------------------------------------------------------------------|---------|-----------------|
| version | No | Brainfucky library version. Default is the [latest](https://pypi.org/project/brainfucky/) version | latest | <String> |
<!-- markdownlint-disable MD013 -->
| Name | Required | Description | Default | Possible values |
|---------|----------|---------------------------------------------------------------------------------------------------|------------|------------------------|
| version | No | Brainfucky library version that can be found [here](https://pypi.org/project/brainfucky/) version | `0.1.dev1` | `0.1.dev1`, `0.1.dev0` |
<!-- markdownlint-enable MD013 -->

## Example usage

### Workflow configuration

<!-- markdownlint-disable MD013 -->
```yaml
name: Test

Expand All @@ -33,8 +38,8 @@ jobs:
echo "+.------.--------.>>+.>++." >> ./hello-world.bf
brainfucky --file ./hello-world.bf
rm ./hello-world.bf

```
<!-- markdownlint-enable MD013 -->

### Result

Expand Down
19 changes: 0 additions & 19 deletions __tests__/test-command.js

This file was deleted.

13 changes: 8 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
---
name: Setup Brainfuck
author: Yevhen Fabizhevskyi
description: 'This GitHub action installs one of the brainfuck interpreters called brainfucky.'
description: 'This GitHub action installs one of the brainfuck interpreters called brainfucky'
branding:
icon: chevrons-right
color: gray-dark
inputs:
version:
description: 'Brainfucky library version.'
description: 'Brainfucky library version'
required: false
default: null
default: '0.1.dev1'
runs:
using: 'node16'
main: 'dist/index.js'
using: 'composite'
steps:
- name: Install Brainfuck
run: pip3 install brainfucky==${{ inputs.version }}
shell: bash
1 change: 0 additions & 1 deletion dist/index.js

This file was deleted.

Loading