Skip to content

Commit

Permalink
jenkinsfiles: Use credential for GitHub token
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo Mendes Spessoto Junior <[email protected]>
  • Loading branch information
MarceloSpessoto committed Aug 18, 2024
1 parent aab9674 commit d9af38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkinsfiles/shellcheck-reviewdog
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ pipeline {
CI_REPO_NAME = "kworkflow"
CI_COMMIT = "${GIT_COMMIT}"
REVIEWDOG_INSECURE_SKIP_VERIFY = "true"
REVIEWDOG_GITHUB_API_TOKEN="<token>"
REVIEWDOG_GITHUB_API_TOKEN = credentials('github-token')
}
stages {
stage('Build'){
steps{
sh '/bin/bash -c "shellcheck -f checkstyle --external-sources --shell=bash --exclude=SC2016,SC2181,SC2034,SC2154,SC2001,SC1090,SC1091,SC2120 src/*.sh | REVIEWDOG_TOKEN="<token>" reviewdog -f checkstyle -reporter=github-check"'
sh '/bin/bash -c "shellcheck -f checkstyle --external-sources --shell=bash --exclude=SC2016,SC2181,SC2034,SC2154,SC2001,SC1090,SC1091,SC2120 src/*.sh | reviewdog -f checkstyle -reporter=github-check"'
}
}

Expand Down

0 comments on commit d9af38d

Please sign in to comment.