Set sonar secret only in one workflow step #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pushed Commit | |
on: | |
push: | |
jobs: | |
get-base-image: | |
runs-on: ubuntu-latest | |
outputs: | |
base_image: ${{ steps.vars.outputs.base_image }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Output the base-image | |
id: vars | |
run: | | |
source ./bin/lib.sh | |
echo "base_image=$(echo_base_image)" >> ${GITHUB_OUTPUT} | |
trigger: | |
needs: [get-base-image] | |
uses: ./.github/workflows/main.yml | |
with: | |
BASE_IMAGE: ${{ needs.get-base-image.outputs.base_image }} | |
KOSLI_TRAIL: ${{ github.sha }} | |
secrets: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }} | |
KOSLI_SONAR_API_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | |