Release #3
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
############################################################################### | |
# _ _ _ _ _____ _ | |
# | | | | | | | | | __ \(_) | |
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __ | |
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__| | |
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ | | |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_| | |
# | | | | | |
# |_| |_| | |
# | |
# Copyright (c) 2021-2024 Claudio André <dev at claudioandre.slmail.me> | |
# | |
# This program comes with ABSOLUTELY NO WARRANTY; express or implied. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, as expressed in version 2, seen at | |
# http://www.gnu.org/licenses/gpl-2.0.html | |
############################################################################### | |
# GitHub Action to scan using VirusTotal and produce a Provenance file | |
# More info at https://github.com/openwall/john-packages | |
--- | |
name: Release | |
"on": | |
release: | |
types: [published] | |
permissions: read-all | |
jobs: | |
virustotal: | |
name: Virus Scan | |
runs-on: ubuntu-latest | |
permissions: | |
# required to update the release. But it is a security issue. | |
contents: write | |
id-token: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
objects.githubusercontent.com:443 | |
www.virustotal.com:443 | |
- name: VirusTotal Scan | |
uses: crazy-max/ghaction-virustotal@92a6081d9aab8f8ef3d9081e8bb264aaccc9e74d # v4.0.0 | |
with: | |
vt_api_key: ${{ secrets.VT_API_KEY }} | |
update_release_body: true | |
files: | | |
.7z$ | |
.zip$ | |
provenance: | |
name: provenance | |
needs: [virustotal] | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
attestations: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
fulcio.sigstore.dev:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
rekor.sigstore.dev:443 | |
uploads.github.com:443 | |
- name: Get assets | |
uses: dsaltares/fetch-gh-release-asset@aa2ab1243d6e0d5b405b973c89fa4d06a2d0fff7 # v1.1.2 | |
with: | |
version: tags/${{ github.ref_name }} | |
regex: true | |
file: ".*zip$|.*7z$|Created-on.*.txt$" | |
target: local-app/ | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Attest release | |
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2 | |
with: | |
subject-path: "${{ github.workspace }}//local-app" |