Match only file in root directory of repo #9083
Answered
by
viceice
AKorezin
asked this question in
Request Help
-
I have a project with files
I want to match only file I tried to use this config {
"extends": [
"config:base",
],
"pinDigests": true,
"packageRules": [
{
"matchFiles": ["docker-compose.yml"],
"pinDigests": false
}
],
} But I've got an error {
"validationMessage": "packageRules: Each packageRule must contain at least one selector (matchPackageRules, matchPaths, matchLanguages, matchBaseBranches, matchManagers, matchDatasources, matchDepTypes, matchPackageNames, matchPackagePatterns, excludePackageNames, excludePackagePatterns, matchCurrentVersion, matchSourceUrlPrefixes, matchUpdateTypes). If you wish for configuration to apply to all packages, it is not necessary to place it inside a packageRule at all."
} So I tried to use this config {
"extends": [
"config:base",
],
"pinDigests": true,
"packageRules": [
{
"matchPaths": ["/docker-compose.yml"],
"pinDigests": false
}
],
} But it didn't match How can I pin digests in |
Beta Was this translation helpful? Give feedback.
Answered by
viceice
Mar 11, 2021
Replies: 2 comments 8 replies
-
checkout matchFiles |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
AKorezin
-
This is what worked for me: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
checkout matchFiles