Skip to content

Commit

Permalink
build(deps): Bump the ci-dependencies group with 10 updates (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Feb 18, 2024
1 parent 776f6bc commit 12e17f8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 25 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/container-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install cosign
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0
with:
cosign-release: v1.13.1

Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:

- name: Extract Docker metadata
id: docker_meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Build and push Docker image
id: docker_build_push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=gha,scope=${{ matrix.platform }}
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Upload digest
if: ${{ github.ref == 'refs/heads/main' || startswith(github.event.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
if-no-files-found: error
name: digests
Expand All @@ -147,7 +147,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Download digests
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: digests
path: /tmp/digests
Expand All @@ -164,7 +164,7 @@ jobs:

- name: Extract Docker metadata
id: docker_meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Rust
run: |
Expand All @@ -39,10 +39,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Download YARA
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: ${{ needs.yara.outputs.artifacts }}
path: .yara
Expand All @@ -54,7 +54,7 @@ jobs:
rustup default stable
- name: Cache dependencies
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
key: x86_64-unknown-linux-gnu

Expand Down Expand Up @@ -103,10 +103,10 @@ jobs:
runs-on: ${{ matrix.triple.runs-on }}
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Download YARA
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: ${{ fromJson(needs.yara-test-output.outputs.result).artifacts[matrix.triple.runs-on] }}
path: .yara
Expand All @@ -118,7 +118,7 @@ jobs:
rustup default stable
- name: Cache dependencies
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
key: ${{ matrix.triple.target }}

Expand All @@ -135,15 +135,15 @@ jobs:

steps:
- name: "Checkout repository"
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Cache dependencies
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
key: x86_64-unknown-linux-gnu

- name: Download YARA
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: ${{ needs.yara.outputs.artifacts }}
path: .yara
Expand All @@ -160,7 +160,7 @@ jobs:
run: rm ./target/doc/.lock

- name: "Upload artifact"
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3.0.0
with:
path: ./target/doc

Expand All @@ -184,4 +184,4 @@ jobs:
steps:
- name: "Deploy to GitHub Pages"
id: deployment
uses: actions/deploy-pages@9dbe3824824f8a1377b8e298bafde1a50ede43e5 # v2.0.4
uses: actions/deploy-pages@87c3283f01cd6fe19a0ab93a23b2f6fcba5a8e42 # v4.0.3
26 changes: 20 additions & 6 deletions .github/workflows/yara.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: YARA

on:
Expand All @@ -9,7 +10,7 @@ on:
type: string
version:
description: YARA version
default: "4.3.1"
default: 4.3.1
required: false
type: string
outputs:
Expand All @@ -23,26 +24,38 @@ on:
description: YARA Library Path
value: .libs

defaults:
run:
shell: bash

jobs:
yara:
runs-on: ${{ inputs.runs-on }}
steps:
- name: Cache YARA
id: cache-yara
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
key: yara-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}
path: yara-${{ inputs.version }}

- name: Compile YARA
if: steps.cache-yara.outputs.cache-hit != 'true' && runner.os == 'Linux'
run: |
#/usr/bin/env bash
set -e
curl -sL https://github.com/VirusTotal/yara/archive/refs/tags/v${{ inputs.version }}.tar.gz -o yara-${{ inputs.version }}.tar.gz
tar -xzf yara-${{ inputs.version }}.tar.gz && cd yara-${{ inputs.version }} && ./bootstrap.sh && ./configure && make
curl -sL \
https://github.com/VirusTotal/yara/archive/refs/tags/v${{ inputs.version }}.tar.gz \
-o yara-${{ inputs.version }}.tar.gz
tar -xzf yara-${{ inputs.version }}.tar.gz
cd yara-${{ inputs.version }}
./bootstrap.sh
./configure
make
if: steps.cache-yara.outputs.cache-hit != 'true' && runner.os == 'Linux'

- name: Upload YARA
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
if-no-files-found: error
name: yara-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}
Expand All @@ -51,6 +64,7 @@ jobs:
yara-${{ inputs.version }}/libyara/include/yara.h
yara-${{ inputs.version }}/.libs/libyara*
retention-days: 1
overwrite: true

outputs:
artifacts: yara-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}
Expand Down

0 comments on commit 12e17f8

Please sign in to comment.