Skip to content

Commit fbc4b7d

Browse files
Merge pull request #10 from Link-/lintTown
adding linter
2 parents b480269 + 90a51b2 commit fbc4b7d

File tree

2 files changed

+62
-4
lines changed

2 files changed

+62
-4
lines changed

.github/workflows/linter.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
push:
19+
branches-ignore: [master, main]
20+
21+
###############
22+
# Set the Job #
23+
###############
24+
jobs:
25+
build:
26+
# Name the Job
27+
name: Lint Code Base
28+
# Set the agent to run on
29+
runs-on: ubuntu-latest
30+
31+
##################
32+
# Load all steps #
33+
##################
34+
steps:
35+
##########################
36+
# Checkout the code base #
37+
##########################
38+
- name: Checkout Code
39+
uses: actions/checkout@v2
40+
with:
41+
# Full git history is needed to get a proper list of changed files within `super-linter`
42+
fetch-depth: 0
43+
44+
################################
45+
# Run Linter against code base #
46+
################################
47+
- name: Lint Code Base
48+
uses: github/super-linter@v4
49+
env:
50+
VALIDATE_ALL_CODEBASE: true
51+
DEFAULT_BRANCH: main
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# GH Token
2+
13
```sh
24
* _____ _ *_ _______ * _ * * ** *
35
/ ____| |* | | |__ __| | | * * 🦄 *
@@ -7,11 +9,15 @@
79
\_____|_| |_| |_|\___/|_|\_\___|_| |_| *
810
```
911
12+
<!-- markdownlint-disable -->
13+
1014
> Create an installation access token for a GitHub app from your terminal
1115
1216
[![ghtoken size](https://img.shields.io/github/size/link-/gh-token/ghtoken?style=flat-square)](ghtoken) [![License](https://img.shields.io/github/license/link-/gh-token?style=flat-square)](LICENSE) ![platforms supported](https://img.shields.io/static/v1?style=flat-square&label=platform&message=macos%20%7C%20linux)
17+
<!-- markdownlint-restore -->
1318
14-
[Creates an installation access token](https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app) that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire 1 hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.
19+
[Creates an installation access token](https://docs.github.com/en/rest/reference/apps#create-an-installation-access-token-for-an-app) that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account.
20+
Installation tokens expire 1 hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.
1521

1622
You can use this access token to make pretty much any REST or GraphQL API call the app is authorized to make!
1723

@@ -60,8 +66,8 @@ wget -O ghtoken \
6066
### curl
6167
6268
```sh
63-
# Download a file, name it ghtoken following [L]ocation redirects, and
64-
# automatically [C]ontinuing (resuming) a previous file transfer then
69+
# Download a file, name it ghtoken following [L]ocation redirects, and
70+
# automatically [C]ontinuing (resuming) a previous file transfer then
6571
# do a checksum
6672
curl -o ghtoken \
6773
-O -L -C - \
@@ -409,7 +415,7 @@ jobs:
409415

410416
## Troubleshoot
411417

412-
#### I'm getting: `Something went awry creating the jwt` with `ghtoken generate`
418+
### I'm getting: `Something went awry creating the jwt` with `ghtoken generate`
413419

414420
Make sure your `pem` file has the extension `.pem`. This is necessary for `jwt-cli` to be able to determine the type of key it's trying to parse.
415421

0 commit comments

Comments
 (0)