ci(deps): bump the all group across 1 directory with 21 updates #106
Workflow file for this run
This file contains hidden or 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: CESARt | |
| on: | |
| pull_request: | |
| types: [ labeled ] | |
| env: | |
| ENGINE_VERSION: ${{ vars.CES_ENGINE_VERSION }} | |
| PLATFORM: "LINUX_X64" | |
| ENGINE: "kics" | |
| REMOVE_HISTORY: "true" | |
| jobs: | |
| build: | |
| if: (github.event.label.name == 'cesar' && github.event.pull_request.mergeable == true) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: refs/pull/${{ github.event.pull_request.number }}/merge | |
| path: kics | |
| - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: kics/go.mod | |
| cache-dependency-path: kics/go.sum | |
| cache: true | |
| - name: Build kics Binary | |
| env: | |
| CGO_ENABLED: 0 | |
| GOOS: linux | |
| GOARCH: amd64 | |
| run: | | |
| cd $GITHUB_WORKSPACE/kics | |
| go build -installsuffix cgo -ldflags "-s -w" -a -o ./bin/kics ./cmd/console/main.go | |
| chmod +x ./bin/kics | |
| - name: Create Metadata File | |
| run: | | |
| COMMIT_TIMESTAMP=$(git -C "$GITHUB_WORKSPACE/kics" log -1 --format=%ct) | |
| METADATA_PATH="$GITHUB_WORKSPACE/pr-metadata.json" | |
| CURR_TIMESTAMP=$(date +%s) | |
| echo '{ | |
| "seq": "'"${CURR_TIMESTAMP}"'", | |
| "tag": "'"${{ github.event.number }}"'", | |
| "comment": "'"${{ github.event.pull_request.title }}"'", | |
| "commit": "'"${{ github.event.pull_request.head.sha }}"'", | |
| "owner": "'"${{ github.actor }}"'", | |
| "branch": "'"${{ github.head_ref }}"'", | |
| "engine": "'"${ENGINE}"'", | |
| "platform": "'"${PLATFORM}"'", | |
| "version": "'"${ENGINE_VERSION}"'", | |
| "forkSeq": "'"${CURR_TIMESTAMP}"'", | |
| "forkBranch": "'"${{ github.base_ref }}"'", | |
| "removeHistory" : "'"${REMOVE_HISTORY}"'" | |
| }' > "$METADATA_PATH" | |
| - name: Zip kics Folder | |
| run: | | |
| cd $GITHUB_WORKSPACE | |
| zip -qr kics.zip kics/ | |
| - name: Save kics | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: kics | |
| path: ${{ github.workspace }}/kics.zip | |
| retention-days: 1 | |
| - name: Pr parameters | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: Metadata | |
| path: ${{ github.workspace }}/pr-metadata.json | |
| retention-days: 1 | |
| ci-projects: | |
| needs: build | |
| uses: ./.github/workflows/run-projects.yaml | |
| with: | |
| machines-count: 10 | |
| secrets: inherit |