Merge tag 'v3.81.9' of https://github.com/trufflesecurity/trufflehog #74
Workflow file for this run
This file contains 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
# This workflow will download the go dependencies for the project | |
# then compress and release the resulting vendor tarball | |
# see https://wiki.gentoo.org/wiki/Writing_go_Ebuilds | |
name: Create Go Vendor Tarball | |
env: | |
TAR_REPRO_OPTS: '"--mtime=2024-01-01 00:00 UTC" --sort=name --owner=0 --group=0 --numeric-owner' | |
TAR_NAME: ${{ github.event.repository.name }}-${{ github.ref_name }}-vendor.tar.xz | |
CHECKOUT_DIR: ${{ github.event.repository.name }}-${{ github.ref_name }} | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
vendor-tarball: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: ${{ env.CHECKOUT_DIR }} | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
cache-dependency-path: ${{ env.CHECKOUT_DIR }}/go.sum | |
- name: fetch deps | |
run: go mod vendor | |
working-directory: ${{ env.CHECKOUT_DIR }} | |
- name: compress vendor | |
run: > | |
tar ${{ env.TAR_REPRO_OPTS }} -caf ${{ env.TAR_NAME }} | |
${{ env.CHECKOUT_DIR }}/vendor | |
- name: release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ${{ env.TAR_NAME }} | |
body: Go vendor tarball for Gentoo Linux overlay package | |
generate_release_notes: false | |
fail_on_unmatched_files: true |