Skip to content

Bump gitleaks/gitleaks from 8.18.2 to 8.18.4 #7

Bump gitleaks/gitleaks from 8.18.2 to 8.18.4

Bump gitleaks/gitleaks from 8.18.2 to 8.18.4 #7

Workflow file for this run

---
name: Security
on: # yamllint disable-line rule:truthy
pull_request: {}
push:
branches:
- main
jobs:
build-image:
name: Build image
runs-on: ubuntu-latest
outputs:
artifact-name: "${{ steps.artifact.outputs.name }}"
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v4
- name: Build image
id: build-image
uses: docker/build-push-action@v6
with:
push: false
- name: Save image
id: artifact
run: |
artifact_name="$(date +%s)"
archive_path="${RUNNER_TEMP}/${artifact_name}.tar"
docker save --output "${archive_path}" "${{ steps.build-image.outputs.digest }}"
echo "path=${archive_path}" >> "$GITHUB_OUTPUT"
echo "name=${artifact_name}" >> "$GITHUB_OUTPUT"
- name: Upload artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: "${{ steps.artifact.outputs.name }}"
path: "${{ steps.artifact.outputs.path }}"
retention-days: "1"
compression-level: "0"
sast:
name: SAST
needs: ["build-image"]
permissions:
contents: read
security-events: write
uses: fabasoad/reusable-workflows/.github/workflows/wf-security-sast.yml@main
with:
image: true
image-artifact-name: "${{ needs.build-image.outputs.artifact-name }}"