A tool to cleanup stale gitlab runners

clinar - A tool to cleanup stale gitlab runners

This tool basically get’s all offline runners which a user can administer. If you don’t provide the --approve flag the tool just shows all runners which are offline with some additional information. After you provide the --approve flag all offline runners are deleted.

Flags and Config Options

Usage
clinar [flags]
Environment Variables
GITLAB_HOST

set the GitLab host to be able to run against self hosted GitLab instances [Default: https://gitlab.com]

GITLAB_TOKEN

GitLab token to access the GitLab API. To view runners read_api should be sufficient. To cleanup stale runners you must have full API access.

Flags
--approve, -a

Boolean flag to toggle approve. If you provide this flag stale runners are deleted.

--exclude, -e

String[] flag (can be provided multiple times). Define projects/ groups based on their names or ids which are excluded. This flag takes precedences before include. If one group/ project is excluded the full runner is excluded from the cleanup list.

--include, -i

String flag to define a regular expressions for projects/ groups which should be included. If one group/ project is included the runner is included into the cleanup list.

Comments
  • fix(deps): update module github.com/briandowns/spinner to v1.20.0

    fix(deps): update module github.com/briandowns/spinner to v1.20.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/briandowns/spinner | require | minor | v1.19.0 -> v1.20.0 |


    Release Notes

    briandowns/spinner

    v1.20.0

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/xanzy/go-gitlab to v0.77.0

    fix(deps): update module github.com/xanzy/go-gitlab to v0.77.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/xanzy/go-gitlab | require | minor | v0.76.0 -> v0.77.0 |


    Release Notes

    xanzy/go-gitlab

    v0.77.0

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/xanzy/go-gitlab to v0.76.0

    fix(deps): update module github.com/xanzy/go-gitlab to v0.76.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/xanzy/go-gitlab | require | minor | v0.75.0 -> v0.76.0 |


    Release Notes

    xanzy/go-gitlab

    v0.76.0

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/xanzy/go-gitlab to v0.75.0

    fix(deps): update module github.com/xanzy/go-gitlab to v0.75.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/xanzy/go-gitlab | require | minor | v0.74.0 -> v0.75.0 |


    Release Notes

    xanzy/go-gitlab

    v0.75.0

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/spf13/viper to v1.14.0

    fix(deps): update module github.com/spf13/viper to v1.14.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/spf13/viper | require | minor | v1.13.0 -> v1.14.0 |


    Release Notes

    spf13/viper

    v1.14.0

    Compare Source

    What's Changed

    Enhancements 🚀
    Breaking Changes 🛠
    Dependency Updates ⬆️

    Full Changelog: https://github.com/spf13/viper/compare/v1.13.0...v1.14.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/xanzy/go-gitlab to v0.74.0

    fix(deps): update module github.com/xanzy/go-gitlab to v0.74.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/xanzy/go-gitlab | require | minor | v0.73.1 -> v0.74.0 |


    Release Notes

    xanzy/go-gitlab

    v0.74.0

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/spf13/cobra to v1.6.1

    fix(deps): update module github.com/spf13/cobra to v1.6.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/spf13/cobra | require | patch | v1.6.0 -> v1.6.1 |


    Release Notes

    spf13/cobra

    v1.6.1

    Compare Source

    Bug fixes 🐛
    • Fixes a panic when AddGroup isn't called before AddCommand(my-sub-command) is executed. This can happen within more complex cobra file structures that have many different inits to be executed. Now, the check for groups has been moved to ExecuteC and provides more flexibility when working with grouped commands - @​marckhouzam (and shout out to @​aawsome, @​andig and @​KINGSABRI for a deep investigation into this! 👏🏼)

    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/stretchr/testify to v1.8.1

    fix(deps): update module github.com/stretchr/testify to v1.8.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/stretchr/testify | require | patch | v1.8.0 -> v1.8.1 |


    Release Notes

    stretchr/testify

    v1.8.1

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/spf13/cobra to v1.6.0

    fix(deps): update module github.com/spf13/cobra to v1.6.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/spf13/cobra | require | minor | v1.5.0 -> v1.6.0 |


    Release Notes

    spf13/cobra

    v1.6.0

    Compare Source

    Summer 2022 Release

    Some exciting changes make their way to Cobra! Command completions continue to get better and better (including adding --help and --version automatic flags to the completions list). Grouping is now possible in your help output as well! And you can now use the OnFinalize method to cleanup things when all "work" is done. Checkout the full changelog below:


    Features 🌠
    Deprecation 👎🏼
    • ExactValidArgs is deprecated (but not being removed entirely). This is abit nuanced, so checkout #​1643 for further information and the updated user_guide.md on how this may affect you (and how you can take advantage of the correct behavior in the validators): @​umarcor #​1643
    Bug fixes 🐛
    Dependencies 🗳️
    Testing 🤔
    Docs ✏️
    Misc 💭

    Note: Per #​1804, we will be moving away from "seasonal" releases and doing more generic point release targets. Continue to track the milestones and issues in the spf13/cobra GitHub repository for more information!

    Great work everyone! Cobra would never be possible without your contributions! 🐍

    Full Changelog: https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/spf13/viper to v1.13.0

    fix(deps): update module github.com/spf13/viper to v1.13.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/spf13/viper | require | minor | v1.12.0 -> v1.13.0 |


    Release Notes

    spf13/viper

    v1.13.0

    Compare Source

    Important: This is the last release supporting Go 1.15.

    What's Changed

    Exciting New Features 🎉
    Enhancements 🚀
    Bug Fixes 🐛
    Dependency Updates ⬆️

    New Contributors

    Full Changelog: https://github.com/spf13/viper/compare/v1.12.0...v1.13.0


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update module github.com/xanzy/go-gitlab to v0.73.1

    fix(deps): update module github.com/xanzy/go-gitlab to v0.73.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | github.com/xanzy/go-gitlab | require | patch | v0.73.0 -> v0.73.1 |


    Release Notes

    xanzy/go-gitlab

    v0.73.1

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

  • fix(deps): update dependencies (major) (major)

    fix(deps): update dependencies (major) (major)

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | go.mozilla.org/sops | require | major | v0.0.0-20190912205235-14a22d7a7060 -> v3.7.3 | | goreleaser/goreleaser-action | action | major | v3 -> v4 |


    Release Notes

    mozilla/sops

    v3.7.3

    Compare Source

    Changes:
    Bug fixes:
    • Upload the correct binary for the linux amd64 build (#​1026)
    • Fix bug when specifying multiple age recipients (#​966)
    • Allow for empty yaml maps (#​908)
    Commits

    v3.7.2

    Compare Source

    Changes:
    Bug Fixes
    • Make sure comments in yaml files are not duplicated (#​866)
    • Make sure configuration file paths work correctly relative to the config file in us (#​853)
    Commits

    v3.7.1

    Compare Source

    Commits

    v3.7.0

    Compare Source

    3.7.0

    Features:

    Changes:

    • On failed decryption with GPG, return the error returned by GPG to the sops user (#​762)
    • Use yaml.v3 instead of modified yaml.v2 for handling YAML files (#​791)
    • Update aws-sdk-go to version v1.37.18 (#​823)

    Project Changes:

    • Switch from TravisCI to Github Actions (#​792)

    v3.6.1

    Compare Source

    Features:

    • Add support for --unencrypted-regex (#​715)

    Changes:

    • Use keys.openpgp.org instead of gpg.mozilla.org (#​732)
    • Upgrade AWS SDK version (#​714)
    • Support --input-type for exec-file (#​699)

    Bug fixes:

    • Fixes broken Vault tests (#​731)
    • Revert "Add standard newline/quoting behavior to dotenv store" (#​706)

    v3.6.0

    Compare Source

    Features:

    • Support for encrypting data through the use of Hashicorp Vault (#​655)
    • sops publish now supports --recursive flag for publishing all files in a directory (#​602)
    • sops publish now supports --omit-extensions flag for omitting the extension in the destination path (#​602)
    • sops now supports JSON arrays of arrays (#​642)

    Improvements:

    • Updates and standardization for the dotenv store (#​612, #​622)
    • Close temp files after using them for edit command (#​685)

    Bug fixes:

    • AWS SDK usage now correctly resolves the ~/.aws/config file (#​680)
    • sops updatekeys now correctly matches config rules (#​682)
    • sops updatekeys now correctly uses the config path cli flag (#​672)
    • Partially empty sops config files don't break the use of sops anymore (#​662)
    • Fix possible infinite loop in PGP's passphrase prompt call (#​690)

    Project changes:

    • Dockerfile now based off of golang version 1.14 (#​649)
    • Push alpine version of docker image to Dockerhub (#​609)
    • Push major, major.minor, and major.minor.patch tagged docker images to Dockerhub (#​607)
    • Removed out of date contact information (#​668)
    • Update authors in the cli help text (#​645)

    v3.5.0

    Compare Source

    Features:

    * `sops exec-env` and `sops exec-file`, two new commands for utilizing sops secrets within a temporary file or env vars
    

    Bug fixes:

    * Sanitize AWS STS session name, as sops creates it based off of the machines hostname
    * Fix for `decrypt.Data` to support `.ini` files
    * Various package fixes related to switching to Go Modules
    * Fixes for Vault-related tests running locally and in CI.
    

    Project changes:

    * Change to proper use of go modules, changing to primary module name to `go.mozilla.org/sops/v3`
    * Change tags to requiring a `v` prefix.
    * Add documentation for `sops updatekeys` command
    
    goreleaser/goreleaser-action

    v4

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Enabled.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

  • Dependency Dashboard

    Dependency Dashboard

    This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

    Open

    These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

    Detected dependencies

    github-actions
    .github/workflows/codeql-analysis.yml
    • actions/checkout v3
    • github/codeql-action v2
    • github/codeql-action v2
    • github/codeql-action v2
    .github/workflows/go-test.yml
    • actions/checkout v3
    • actions/setup-go v3
    .github/workflows/release.yml
    • actions/checkout v3
    • actions/setup-go v3
    • goreleaser/goreleaser-action v3
    gomod
    go.mod
    • go 1.19
    • github.com/briandowns/spinner v1.20.0
    • github.com/sirupsen/logrus v1.9.0
    • github.com/spf13/pflag v1.0.5
    • github.com/spf13/viper v1.14.0
    • github.com/stretchr/testify v1.8.1
    • github.com/xanzy/go-gitlab v0.77.0
    • go.mozilla.org/sops v0.0.0-20190912205235-14a22d7a7060@14a22d7a7060
    • go.mozilla.org/sops/v3 v3.7.3
    • github.com/spf13/cobra v1.6.1

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
Related tags
MOVED TO GITLAB
MOVED TO GITLAB

blanket blanket is a tool that helps you catch functions which don't have direct unit tests in your Go packages. Installation go get -u gitlab.com/ver

Nov 27, 2022
list or create gitlab project level variables for gitops

intro gitlab ci requires some env variables, for diffent projects these env vars may be same. so we have this cmd tool -- gitlab-vars install simplely

Dec 1, 2021
a tool for code clone detection

dupl dupl is a tool written in Go for finding code clones. So far it can find clones only in the Go source files. The method uses suffix tree for seri

Dec 12, 2022
depth is tool to retrieve and visualize Go source code dependency trees.

depth is tool to retrieve and visualize Go source code dependency trees. Install Download the appropriate binary for your platform from the Rele

Dec 30, 2022
Tool to populate your code with traceable and secure error codes

Essential part of any project, especially customer facing is proper and secure error handling. When error happens and customer reports it, it would be nice to know the context of the error and where it exactly occured.

Sep 28, 2022
This static analysis tool works to ensure your program's data flow does not spill beyond its banks.

Go Flow Levee This static analysis tool works to ensure your program's data flow does not spill beyond its banks. An input program's data flow is expl

Dec 1, 2022
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language

reviewdog - A code review dog who keeps your codebase healthy. reviewdog provides a way to post review comments to code hosting service, such as GitHu

Jan 2, 2023
A Golang tool that does static analysis, unit testing, code review and generate code quality report.
A Golang tool that does static analysis, unit testing, code review and generate code quality report.

goreporter A Golang tool that does static analysis, unit testing, code review and generate code quality report. This is a tool that concurrently runs

Jan 8, 2023
octocov is a tool for collecting code metrics (code coverage, code to test ratio and test execution time).

octocov is a tool for collecting code metrics (code coverage, code to test ratio and test execution time).

Jan 9, 2023
Analyzer: zapvet is static analysis tool for zap

zapvet zapvet is static analysis tool for zap. fieldtype: fieldtype finds confliction type of field Install You can get zapvet by go install command (

Sep 18, 2022
a simple golang SSA viewer tool use for code analysis or make a linter
a simple golang SSA viewer tool use for code analysis or make a linter

ssaviewer A simple golang SSA viewer tool use for code analysis or make a linter ssa.html generate code modify from src/cmd/compile/internal/ssa/html.

May 17, 2022
Refactoring and code transformation tool for Go.

gopatch is a tool to match and transform Go code. It is meant to aid in refactoring and restyling.

Dec 30, 2022
Retnilnil is a static analysis tool to detect `return nil, nil`

retnilnil retnilnil is a static analysis tool for Golang that detects return nil, nil in functions with (*T, error) as the return type. func f() (*T,

Jun 9, 2022
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
🐶 Automated code review tool integrated with any code analysis tools regardless of programming language

reviewdog - A code review dog who keeps your codebase healthy. reviewdog provides a way to post review comments to code hosting service, such as GitHu

Jan 7, 2023
A tool to convert go test results to testng reports xml.

go-testng-report A tool to convert go test results to testng reports xml. Usage of testng-report: -json-report string Golang json test report (defa

Dec 8, 2021
Languagetool-lint - Lint tool for languagetool

languagetool-lint Lint tool for languagetool. Requirements languagetool. Install

Oct 31, 2022
Tool: ptrls prints result of pointer analysis

ptrls Install $ go install github.com/gostaticanalysis/ptrls/cmd/ptrls@latest Usage $ cd testdata/a $ cat a.go package main func main() { f(map[str

Feb 1, 2022
An open-source GitLab command line tool bringing GitLab's cool features to your command line
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Dec 30, 2022
Purpose-built security agent for hosted runners
Purpose-built security agent for hosted runners

Step Security Agent Purpose-built security agent for hosted runners To pilot it, add the following code to your GitHub Actions workflow file as the fi

Nov 12, 2022
A GitLab API client enabling Go programs to interact with GitLab in a simple and uniform way

go-gitlab A GitLab API client enabling Go programs to interact with GitLab in a simple and uniform way NOTE Release v0.6.0 (released on 25-08-2017) no

Jan 6, 2023