Skip to content

Add workflow to prevent changes to Extensions list #1976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/prevent-manual-extension-registry-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow prevents users from manually changing the
# docs/sources/next/extensions/explore.md file.

# Changes to the registry should only be made automatically
# by the extension-registry-changed workflow.

name: Prevent file change
on:
pull_request:
types: [opened, reopened]
paths:
- 'docs/sources/k6/**/extensions/explore.md'

permissions:
pull-requests: read

jobs:
prevent-file-change:
runs-on: ubuntu-latest
steps:
- name: Checkout
with:
persist-credentials: false
uses: actions/checkout@v4

- name: Prevent manual changes to the extension registry file
uses: xalvarez/prevent-file-change-action@4e88b842aed52bb42b94537ad9736eac06930266 # v2.0.0
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: .*\extensions/explore\.md
trustedAuthors: heitortsergent, szkiba, pablochacin, andrewslotin, mstoykov, inancgumus, oleiade, ankur22, codebien, joanlopez, AgnesToulet
allowNewFiles: true # To prevent issues when we release a new version of k6
2 changes: 2 additions & 0 deletions docs/sources/k6/next/extensions/explore.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ weight: 01

# Explore k6 extensions

Test?

With over 50 available extensions, the k6 extension ecosystem has many options to meet your requirements and help you incorporate new protocol access, embed a particular client, or improve your test performance. Extensions are developed both by the k6 developers and by the open-source developer community.

Extensions are composable; you can combine any extensions, or mix and match different test cases. You can use [Go and xk6](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-go/) or [Docker](https://grafana.com/docs/k6/<K6_VERSION>/extensions/build-k6-binary-using-docker/) to build your custom k6 binary:
Expand Down