Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greenbone/actions
GitHub Actions for Greenbone projects
https://github.com/greenbone/actions
actions automation devops github-actions lint python release release-automation
Last synced: 9 days ago
JSON representation
GitHub Actions for Greenbone projects
- Host: GitHub
- URL: https://github.com/greenbone/actions
- Owner: greenbone
- License: gpl-3.0
- Created: 2021-05-22T15:42:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T16:03:25.000Z (2 months ago)
- Last Synced: 2024-09-17T07:09:22.852Z (about 2 months ago)
- Topics: actions, automation, devops, github-actions, lint, python, release, release-automation
- Language: Python
- Homepage:
- Size: 2.11 MB
- Stars: 7
- Watchers: 22
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
![Greenbone Logo](https://www.greenbone.net/wp-content/uploads/gb_new-logo_horizontal_rgb_small.png)
# Greenbone GitHub Actions
Repository that contains a collection of GitHub Actions for Greenbone projects
## Language specific Actions
We offer several actions for linting, formatting, building and testing packages/modules/projects in different programming languages
### Python
* [Install python, poetry and the project](https://github.com/greenbone/actions/tree/v2/poetry)
* [Install python, poetry, project and run coverage to create a code coverage report](https://github.com/greenbone/actions/tree/v2/coverage-python)
* [Install python, poetry, project and run linter](https://github.com/greenbone/actions/tree/v2/lint-python)
* [Install python, poetry, project and and run mypy type checker](https://github.com/greenbone/actions/tree/v2/mypy-python)
* [Install python, poetry, build python package and upload it to PyPI](https://github.com/greenbone/actions/tree/v2/pypi-upload)
* [Setup python and pontos](https://github.com/greenbone/actions/tree/v2/setup-pontos)### JavaScript
```yml
- name: Install JavaScript and the project [npm]
uses: greenbone/actions/install-npm@v3
with:
version: 3.9
token: ${{ secrets.FOO_BAR }}
- name: Install and check Lint and Format in JavaScript Projects [npm]
uses: greenbone/actions/lint-npm@v3
with:
version: 3.9
token: ${{ secrets.FOO_BAR }}
- name: Install, Build and Test JavaScript Projects [npm]
uses: greenbone/actions/test-npm@v3
with:
version: 3.9
token: ${{ secrets.FOO_BAR }}
- name: Run coverage for javascript
uses: greenbone/actions/coverage-js@v3
```### GoLang
```yml
- name: Check Lint and Format in GoLang Projects
uses: greenbone/actions/lint-golang@v3
with:
version: "1.18"
generate: go generate # mocks, docs, etc
golangci-lint: v1.50 # specify golangci-lint version
```### CLang
```yml
- name: upload documentation coverage to codecov.io for C Lang repository
uses: greenbone/actions/doc-coverage-clang@v3
```## Language independent Actions
### Branch protection* [Lock and unlock a branch in a GitHub repository](https://github.com/greenbone/actions/tree/v2/lock-branch)
* [Allow and disallow admin users bypassing protection rules](https://github.com/greenbone/actions/tree/v2/admin-bypass)### Other useful actions
* [Release a project in C, GoLang, JavaScript or Python](https://github.com/greenbone/actions/tree/v2/release)
* [Create and upload signatures for GitHub release files](https://github.com/greenbone/actions/tree/v2/sign-release-files)
* [Report usage of conventional commits in a Pull Request](https://github.com/greenbone/actions/tree/v2/conventional-commits)
* [Check for consistent versioning in a project](https://github.com/greenbone/actions/tree/v2/check-version)
* [Backport Pull Requests to other additional branches](https://github.com/greenbone/actions/tree/v2/backport-pull-request)
* [Workflow notifications in Mattermost channels](https://github.com/greenbone/actions/tree/v2/mattermost-notify)
* [Trigger Workflow Runs](https://github.com/greenbone/actions/tree/v2/trigger-workflow)
* [Download Workflow Artifacts from a different workflow or even repository](https://github.com/greenbone/actions/tree/v2/trigger-workflow)Update license header supporting many different filetypes
```yml
- name: Run update header
uses: greenbone/actions/update-header@v3
with:
github-user: ${{ secrets.FOO_BAR }}
github-user-mail: [email protected]
github-user-token: bar
directories: foo tests
target: main
```SHA256 file or GPG signature generation
```yml
- name: Create a sha256sums file for the foo directory
uses: greenbone/actions/hashsums@v3
with:
directory: ./foo- name: Create a GPG signature
uses: greenbone/actions/signature@v3
with:
gpg-key: ${{ secrets.FOO_BAR }}
gpg-passphrase: ${{ secrets.FOO_BAZ }}
gpg-fingerprint: ${{ secrets.BAR_BAZ }}
file: ./foo/bar
```## Support
For any question on the usage of the Greenbone actions please use the
[Greenbone Community Forum](https://forum.greenbone.net/). If you
found a problem with the software, please
[create an issue](https://github.com/greenbone/actions/issues)
on GitHub.## Maintainer
This project is maintained by [Greenbone AG](https://www.greenbone.net/).
## License
Copyright (C) 2020-2023 [Greenbone AG](https://www.greenbone.net/)
Licensed under the [GNU General Public License v3.0 or later](LICENSE).