Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: attempt to fix updates for trivy-action not recognized #7

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [ // default presets see https://docs.renovatebot.com/presets-default/
"config:recommended",
"helpers:pinGitHubActionDigestsToSemver",
// "helpers:pinGitHubActionDigestsToSemver",
"security:openssf-scorecard",
":disableDependencyDashboard",
":disableRateLimiting",
Expand All @@ -15,12 +15,12 @@
"renovate/{{updateType}}",
],
packageRules: [
{
/*{
description: "Ignore frequent renovate updates",
enabled: false,
matchPackageNames: ["renovatebot/github-action"],
matchUpdateTypes: ["patch"],
},
},*/
{
description: "Update renovatebot/github-action minor updates on Sundays",
matchPackageNames: ["renovatebot/github-action"],
Expand All @@ -30,9 +30,9 @@
{
description: "Update to action dependencies use fix commits to trigger a release",
matchFileNames: ["action.yml"],
// semanticCommitType: "fix",
semanticCommitType: "fix",
// extends: [":semanticCommitType(fix)"]
extends: [":semanticCommitTypeAll(fix)"]
// extends: [":semanticCommitTypeAll(fix)"]
},
],
prBodyTemplate: "{{{table}}}{{{notes}}}{{{changelogs}}}",
Expand Down Expand Up @@ -73,5 +73,5 @@ semver-coerced\
{{/if}}"
},
],
separateMinorPatch: false,
separateMinorPatch: true,
}
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ runs:

# https://github.com/aquasecurity/trivy-action
- name: Scan Docker image for critical vulnerabilities
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # 0.12.0
uses: aquasecurity/trivy-action@0.12.0
if: "${{ inputs.junit-test-output != '' || inputs.create-test-report }}"
with:
image-ref: '${{ inputs.image-ref }}'
Expand All @@ -77,7 +77,7 @@ runs:
echo "REPORT_FILENAME=$VALID_FILENAME" >> $GITHUB_ENV

- name: Create vulnerability report as HTML
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # 0.12.0
uses: aquasecurity/trivy-action@0.12.0
with:
image-ref: '${{ inputs.image-ref }}'
scan-type: "${{ inputs.image-ref != '' && 'image' || 'fs' }}"
Expand All @@ -97,7 +97,7 @@ runs:
run: |
cp ${GITHUB_ACTION_PATH}/summary.tpl ./trivy-summary.tpl
- name: Create summary on vulnerabilities
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # 0.12.0
uses: aquasecurity/trivy-action@0.12.0
with:
image-ref: '${{ inputs.image-ref }}'
scan-type: "${{ inputs.image-ref != '' && 'image' || 'fs' }}"
Expand Down