Renovate Bot
b60a7366ea
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [zricethezav/gitleaks](https://github.com/gitleaks/gitleaks) | docker | patch | `v8.22.0` -> `v8.22.1` | --- ### Release Notes <details> <summary>gitleaks/gitleaks (zricethezav/gitleaks)</summary> ### [`v8.22.1`](https://github.com/gitleaks/gitleaks/releases/tag/v8.22.1) [Compare Source](https://github.com/gitleaks/gitleaks/compare/v8.22.0...v8.22.1) #### Changelog - [`b69b515`](https://github.com/gitleaks/gitleaks/commit/b69b515) Entropy trace ([#​1659](https://github.com/gitleaks/gitleaks/issues/1659)) - [`7357adc`](https://github.com/gitleaks/gitleaks/commit/7357adc) build: add 'toolchain' to go.mod ([#​1682](https://github.com/gitleaks/gitleaks/issues/1682)) - [`4c3da6e`](https://github.com/gitleaks/gitleaks/commit/4c3da6e) refactor(detect): create readUntilSafeBoundary + add tests ([#​1676](https://github.com/gitleaks/gitleaks/issues/1676)) - [`dbe3746`](https://github.com/gitleaks/gitleaks/commit/dbe3746) twitter really does suck ass now - [`7edfc6b`](https://github.com/gitleaks/gitleaks/commit/7edfc6b) chore(tests): test cases for generate.go ([#​1623](https://github.com/gitleaks/gitleaks/issues/1623)) - [`efe40ca`](https://github.com/gitleaks/gitleaks/commit/efe40ca) fix: only use non-empty secret groups ([#​1632](https://github.com/gitleaks/gitleaks/issues/1632)) - [`7cb5f6f`](https://github.com/gitleaks/gitleaks/commit/7cb5f6f) build: upgrade sprig v2->v3 ([#​1674](https://github.com/gitleaks/gitleaks/issues/1674)) - [`2930537`](https://github.com/gitleaks/gitleaks/commit/2930537) fix: generate report file even if no findings ([#​1673](https://github.com/gitleaks/gitleaks/issues/1673)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled because a matching PR was automerged previously. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44Ni4xIiwidXBkYXRlZEluVmVyIjoiMzkuODYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Reviewed-on: #84 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net>
91 lines
3 KiB
YAML
91 lines
3 KiB
YAML
name: "lint, build and push"
|
|
on:
|
|
schedule:
|
|
- cron: "17 4 * * SUN"
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
|
|
# Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1
|
|
|
|
jobs:
|
|
lint:
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Run Gitleaks
|
|
uses: docker://zricethezav/gitleaks:v8.22.1
|
|
with:
|
|
args: detect --no-git --verbose --source ${{ github.workspace }}
|
|
- name: Run hadolint
|
|
uses: docker://pipelinecomponents/hadolint:0.27.0
|
|
with:
|
|
args: hadolint Dockerfile
|
|
# - name: Run ShellCheck
|
|
# uses: sudo-bot/action-shellcheck@latest
|
|
# with:
|
|
# cli-args: "shell.sh"
|
|
- name: Send notification
|
|
uses: dawidd6/action-send-mail@v4
|
|
if: failure()
|
|
with:
|
|
connection_url: smtp://docker10.mgrote.net:1025
|
|
secure: false
|
|
ignore_cert: true
|
|
to: michael.grote@posteo.de
|
|
from: Gitea Actions <gitea@mgrote.net>
|
|
subject: "CI ${{ job.status }} in ${{ github.repository }}"
|
|
body: |
|
|
Repo: ${{ github.repository }}
|
|
Job: ${{ github.action }}
|
|
Status: ${{ job.status }}
|
|
Trigger Event: ${{ GITHUB_EVENT_NAME }}
|
|
|
|
build:
|
|
needs: [gitleaks, hadolint] # shellcheck
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Extract repository name
|
|
id: name
|
|
run: |
|
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: |
|
|
registry.mgrote.net/${{ steps.name.outputs.REPO_NAME }}
|
|
tags: |
|
|
type=raw,value=latest,enable={{is_default_branch}}
|
|
type=ref,event=branch
|
|
type=ref,event=pr
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
# - name: Login to Docker Hub
|
|
# uses: docker/login-action@v3
|
|
# with:
|
|
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push Docker image
|
|
uses: https://github.com/docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
- name: Send notification
|
|
uses: dawidd6/action-send-mail@v4
|
|
if: failure()
|
|
with:
|
|
connection_url: smtp://docker10.mgrote.net:1025
|
|
secure: false
|
|
ignore_cert: true
|
|
to: michael.grote@posteo.de
|
|
from: Gitea Actions <gitea@mgrote.net>
|
|
subject: "CI ${{ job.status }} in ${{ github.repository }}"
|
|
body: |
|
|
Repo: ${{ github.repository }}
|
|
Job: ${{ github.action }}
|
|
Status: ${{ job.status }}
|
|
Trigger Event: ${{ GITHUB_EVENT_NAME }}
|