File tree 4 files changed +21
-4
lines changed 4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,22 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
5
5
Generated by [ ` auto-changelog ` ] ( https://github.com/CookPete/auto-changelog ) .
6
6
7
+ #### [ v1.0.6] ( https://github.com/Contrast-Security-OSS/actionbot/compare/v1.0.4...v1.0.6 )
8
+
9
+ - Prodsec 475 - Logs [ ` #7 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/pull/7 )
10
+ - Prodsec 462 - fix policyUrl context [ ` #6 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/pull/6 )
11
+ - Prodsec 462 - fix policy url [ ` #5 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/pull/5 )
12
+ - PRODDSEC-462 - Add support to policies hosted in private Github repositories [ ` #4 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/pull/4 )
13
+ - chore: Logs more readable [ ` 1909c15 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/commit/1909c15fcc7b4ee0d5684406dc4083fe7468347d )
14
+ - chore: build [ ` 0cdbb1e ` ] ( https://github.com/Contrast-Security-OSS/actionbot/commit/0cdbb1e07d25532a1f06842dee4cc7242d181e61 )
15
+ - fix: scan subdirectories in workflows and actions folder [ ` f11daf4 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/commit/f11daf4baf8cea627e2ba44a795ed774ecd3a71a )
16
+
7
17
#### [ v1.0.4] ( https://github.com/Contrast-Security-OSS/actionbot/compare/v1.0.3...v1.0.4 )
8
18
19
+ > 1 May 2025
20
+
9
21
- fix: policyUrl getContents was using context owner and repo [ ` 71e65a3 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/commit/71e65a36efa30aff6fc8c7e53abdb462131bf2f3 )
22
+ - chore: update changelog [ ` 12fd334 ` ] ( https://github.com/Contrast-Security-OSS/actionbot/commit/12fd334cbdc30bfd78602236adc3680e0ea28bc2 )
10
23
11
24
#### [ v1.0.3] ( https://github.com/Contrast-Security-OSS/actionbot/compare/v1.0.0...v1.0.3 )
12
25
Original file line number Diff line number Diff line change @@ -38997,9 +38997,11 @@ function run(context) {
38997
38997
allFiles.forEach((file) => {
38998
38998
let filePath = path_1.default.parse(file);
38999
38999
console.log("filePath : " + filePath);
39000
+ const dirLower = filePath.dir.toLowerCase();
39000
39001
if ((filePath.ext.toLowerCase() == ".yaml" ||
39001
39002
filePath.ext.toLowerCase() == ".yml") &&
39002
- filePath.dir.toLowerCase() == ".github/workflows") {
39003
+ dirLower.startsWith(".github/workflows") ||
39004
+ dirLower.startsWith(".github/actions")) {
39003
39005
workflowFilePaths.push(file);
39004
39006
}
39005
39007
});
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " actionbot" ,
3
- "version" : " 1.0.5 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"private" : true ,
5
5
"description" : " Github Action Policy Checker as a Github Action" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -141,10 +141,12 @@ async function run(context: typeof github.context): Promise<void> {
141
141
let filePath = path . parse ( file ) ;
142
142
143
143
console . log ( "filePath : " + filePath ) ;
144
+ const dirLower = filePath . dir . toLowerCase ( ) ;
144
145
if (
145
- ( filePath . ext . toLowerCase ( ) == ".yaml" ||
146
+ ( ( filePath . ext . toLowerCase ( ) == ".yaml" ||
146
147
filePath . ext . toLowerCase ( ) == ".yml" ) &&
147
- filePath . dir . toLowerCase ( ) == ".github/workflows"
148
+ dirLower . startsWith ( ".github/workflows" ) ) ||
149
+ dirLower . startsWith ( ".github/actions" )
148
150
) {
149
151
workflowFilePaths . push ( file ) ;
150
152
}
You can’t perform that action at this time.
0 commit comments