Hello, I’m trying to configure K6 to run in our GH CI/CD, I have a GH secret “TOKEN” that contains Bearer token for the request we are sending:
const params = {
metadata: {
'Authorization': 'Bearer <token>'
}
};
How should I rename <token>
or maybe what should I specify in .github/workflows/load-test.yml file so that it takes token from GH secrets?
Here is my .yml file:
k6_load_test:
name: k6 Load Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run local k6 test
uses: grafana/k6-action@v0.2.0
with:
filename: ../../perfomance test/k6-script-test.js
token: ${{ secrets.K6_CLOUD_API_TOKEN }}