mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
This reverts commit 67572dff6d.
This commit is contained in:
12
.github/workflows/reusable-release.yaml
vendored
12
.github/workflows/reusable-release.yaml
vendored
@@ -75,12 +75,6 @@ jobs:
|
|||||||
args: mod -licenses -json -output bom.json
|
args: mod -licenses -json -output bom.json
|
||||||
version: ^v1
|
version: ^v1
|
||||||
|
|
||||||
- name: "save gpg key"
|
|
||||||
env:
|
|
||||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
|
||||||
run: |
|
|
||||||
echo "$GPG_KEY" > gpg.key
|
|
||||||
|
|
||||||
- name: GoReleaser
|
- name: GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v4
|
uses: goreleaser/goreleaser-action@v4
|
||||||
with:
|
with:
|
||||||
@@ -88,12 +82,6 @@ jobs:
|
|||||||
args: release -f=${{ inputs.goreleaser_config}} ${{ inputs.goreleaser_options}}
|
args: release -f=${{ inputs.goreleaser_config}} ${{ inputs.goreleaser_options}}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
|
||||||
NFPM_DEFAULT_RPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
GPG_FILE: "gpg.key"
|
|
||||||
|
|
||||||
- name: "remove gpg key"
|
|
||||||
run: |
|
|
||||||
rm gpg.key
|
|
||||||
|
|
||||||
## push images to registries
|
## push images to registries
|
||||||
## only for canary build
|
## only for canary build
|
||||||
|
|||||||
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
@@ -125,5 +125,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v1.4.1
|
version: v1.4.1
|
||||||
args: release --skip-sign --snapshot --rm-dist --skip-publish --timeout 90m
|
args: release --skip-sign --snapshot --rm-dist --skip-publish --timeout 90m
|
||||||
env:
|
|
||||||
GPG_FILE: "nofile"
|
|
||||||
|
|||||||
@@ -15,9 +15,8 @@ In this section you will find an aggregation of the different ways to install Tr
|
|||||||
[trivy]
|
[trivy]
|
||||||
name=Trivy repository
|
name=Trivy repository
|
||||||
baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/$RELEASE_VERSION/\$basearch/
|
baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/$RELEASE_VERSION/\$basearch/
|
||||||
gpgcheck=1
|
gpgcheck=0
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgkey=https://aquasecurity.github.io/trivy-repo/rpm/public.key
|
|
||||||
EOF
|
EOF
|
||||||
sudo yum -y update
|
sudo yum -y update
|
||||||
sudo yum -y install trivy
|
sudo yum -y install trivy
|
||||||
|
|||||||
@@ -74,9 +74,6 @@ nfpms:
|
|||||||
contents:
|
contents:
|
||||||
- src: contrib/*.tpl
|
- src: contrib/*.tpl
|
||||||
dst: /usr/local/share/trivy/templates
|
dst: /usr/local/share/trivy/templates
|
||||||
rpm:
|
|
||||||
signature:
|
|
||||||
key_file: '{{ .Env.GPG_FILE }}'
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user