Skip to content

Commit

Permalink
add and use env var for auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleewilcox committed Oct 3, 2024
1 parent dee21d9 commit ff77ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/testrail/testrail.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const addTestRun = `${TESTRAIL_MM_API_URL}/add_run/${TESTRAIL_PROJECT_ID}`;
const getAutomatedTestRun = `${TESTRAIL_MM_API_URL}/get_tests/`;
const addResults = `${TESTRAIL_MM_API_URL}/add_results/`;

axios.defaults.headers.common['Authorization'] = `Basic ${AUTH_TOKEN}`;
axios.defaults.headers.common['Authorization'] = `Basic ${process.env.TESTRAIL_AUTH_TOKEN}`;
let runID;

axios
Expand Down

0 comments on commit ff77ef2

Please sign in to comment.