Skip to content

Commit

Permalink
feat: github app authentication and repo standardization
Browse files Browse the repository at this point in the history
- [x] add ability for users to authenticate with GitHub App Installation
- [x] standardize repo
  - [x] Makefile
  - [x] Linting
  - [x] same workflows as other OSPO GitHub Actions
- [x] add @jmeridth to CODEOWNERS
- [x] update .env-example
- [x] update README
- [x] standardize all workflows (including examples) permissions
  - [x] contents: read by default
  - [x] more details in jobs
- [x] add tests
  - [x] coverage to 60% for now, will get above 80% later
- [x] pull request template

Signed-off-by: jmeridth <jmeridth@gmail.com>
  • Loading branch information
jmeridth committed Apr 8, 2024
1 parent f1875a6 commit 9b4cafa
Show file tree
Hide file tree
Showing 29 changed files with 1,424 additions and 93 deletions.
17 changes: 11 additions & 6 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
GH_ACTOR= ' '
GH_TOKEN=' '
PR_TITLE=' '
PR_BODY=' '
ORGANIZATION=' '
REPOS_JSON_LOCATION=' '
GH_ACTOR=""
GH_TOKEN=""
ORGANIZATION=""
PR_TITLE=""
PR_BODY=""
REPOS_JSON_LOCATION=""

# GITHUB APP
GH_APP_ID = ""
GH_INSTALLATION_ID = ""
GH_PRIVATE_KEY = ""
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @lindluni @zkoppert
* @jmeridth @lindluni @zkoppert
18 changes: 10 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
5 changes: 5 additions & 0 deletions .github/linters/.flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
max-line-length = 150
exclude = venv,.venv,.git,__pycache__
extend-ignore = C901
statistics = True
2 changes: 2 additions & 0 deletions .github/linters/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[isort]
profile = black
7 changes: 7 additions & 0 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"threshold": 25,
"ignore": [
"test*"
],
"absolute": true
}
7 changes: 7 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# line length
MD013: false
# singe h1
MD025: false
# duplicate headers
MD024: false
5 changes: 5 additions & 0 deletions .github/linters/.mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mypy]
disable_error_code = attr-defined, import-not-found

[mypy-github3.*]
ignore_missing_imports = True
Loading

0 comments on commit 9b4cafa

Please sign in to comment.