-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
576 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Admin bypass Action | ||
|
||
GitHub Action that allows or disallows repository admins to bypass branch | ||
protection rules. | ||
|
||
## Examples | ||
|
||
```yml | ||
name: Bypass Branch Protection | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
lock: | ||
name: Bypass Protection | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: allow admin users bypassing protection on <target> branch on <repository> | ||
uses: greenbone/actions/admin-bypass@v2 | ||
with: | ||
allow: "true" | ||
branch: <target> | ||
repository: <repository> | ||
- name: disable bypassing protection on <target> branch on <repository> for admin users | ||
uses: greenbone/actions/admin-bypass@v2 | ||
with: | ||
allow: "false" | ||
branch: <target> | ||
repository: <repository> | ||
``` | ||
## Action Configuration | ||
|Input Variable|Description| | | ||
|--------------|-----------|-| | ||
| github-token | Github user token, that is legitimated to bypass branch protection. | Optional (default: `${{ github.token }}`) | | ||
| allow | Allow or not? (Options: `"true"`, `"false"`)? | Optional (default is `"false"`) | | ||
| repository | What repository branch should be able to be bypassed by admins? Defaults to the executing repository. | Optional (default is `${{ github.repository }}` | | ||
| branch | Target branch for the bypass. | Optional (default is `"main"`) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Check Version | ||
|
||
GitHub Action to check version information of a project via pontos | ||
|
||
## Example | ||
|
||
```yml | ||
name: Check Versioning | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
name: Check Versioning | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: greenbone/actions/check-version@v2 | ||
``` | ||
## Action Configuration | ||
|Input Variable|Description| | | ||
|--------------|-----------|-| | ||
| python-version | Python version to use for running the action. | Optional (default is `3.10`) | | ||
| working-directory | "A working directory where to check the versioning | Optional (default is `${{ github.workspace }}`) | |
Oops, something went wrong.