Skip to content

chore(deps): update all non-major action updates #692

chore(deps): update all non-major action updates

chore(deps): update all non-major action updates #692

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
permissions:
contents: read # Required to checkout the code
jobs:
check:
name: Check
permissions:
contents: read # Required to checkout the code
uses: TimSchoenle/actions/.github/workflows/rust-cargo-check.yaml@304bd1442f3ae5cdc3401aa145fa80fc4f8097e6 # workflows-rust-cargo-check-v1.1.5
coverage:
name: Coverage
permissions:
contents: read # Required to checkout the code
uses: TimSchoenle/actions/.github/workflows/rust-coverage-codecov.yaml@cefa8b269bfd7aa38af7825dc24841ea594199d8 # workflows-rust-coverage-codecov-v1.0.4
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test:
name: Test
permissions:
contents: read # Required to checkout the code
uses: TimSchoenle/actions/.github/workflows/rust-test.yaml@d681dc1bc16b10592a57a57d2845acbe97adb131 # workflows-rust-test-v1.0.1
fmt:
name: Auto Format
uses: TimSchoenle/actions/.github/workflows/rust-auto-format.yaml@a7d92c33bdf0a2820fdecc6da9c986d5b9c36995 # workflows-rust-auto-format-v1.1.2
secrets:
APP_ID: ${{ secrets.ACTIONS_MAINTENANCE_APP_ID }}
PRIVATE_KEY: ${{ secrets.ACTIONS_MAINTENANCE_PRIVATE_KEY }}
clippy:
name: Clippy
permissions:
contents: read # Required to checkout the code
checks: write # Required to annotate the commit with clippy warnings
uses: TimSchoenle/actions/.github/workflows/rust-clippy.yaml@5d0165e4c39e664afa0ff74d7ccb8eeaf68aa727 # workflows-rust-clippy-v1.1.3
docker-build-test:
name: Docker Build and Test
runs-on: ubuntu-latest
needs: check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-docker
cancel-in-progress: true
permissions:
contents: read # Required to checkout the code
security-events: write # Required to upload Trivy scan results
pull-requests: write # Required to comment on PRs with image size
steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Build Docker image
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
with:
context: .
push: false
load: true
tags: cloudflare-access-webhook-redirect:test
build-args: |
version=test
release=test
vendor=Timmi6790
VERSION=test
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Test Docker image runs
run: |
docker run --rm cloudflare-access-webhook-redirect:test --version || true
docker run --rm cloudflare-access-webhook-redirect:test --help || true
- name: Check image size
id: size-check
run: |
SIZE=$(docker image inspect cloudflare-access-webhook-redirect:test --format='{{.Size}}' | awk '{print int($1/1024/1024)}')
echo "size=${SIZE}" >> $GITHUB_OUTPUT
echo "Image size: ${SIZE}MB"
if [ $SIZE -gt 150 ]; then
echo "::warning::Image size (${SIZE}MB) exceeds 150MB threshold"
fi
- name: Scan Docker image for vulnerabilities
uses: aquasecurity/trivy-action@e368e328979b113139d6f9068e03accaed98a518 # v0.34.1
with:
image-ref: cloudflare-access-webhook-redirect:test
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy results to GitHub Security
uses: github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5
if: always()
with:
sarif_file: 'trivy-results.sarif'
- name: Comment image size on PR
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
if: github.event_name == 'pull_request'
env:
SIZE: ${{ steps.size-check.outputs.size }}
with:
script: |
const size = process.env.SIZE;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `🐳 Docker image size: **${size}MB**`
});
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
needs: check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-dependency-review
cancel-in-progress: true
if: github.event_name == 'pull_request'
steps:
- name: Harden Runner
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Dependency Review
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4