Merge branch 'folder_category' of https://github.com/actions/starter-workflows into folder_category
This commit is contained in:
@@ -9,7 +9,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ $default-branch, $protected-branches ]
|
branches: [ $default-branch, $protected-branches ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ $default-branch ]
|
branches: [ $default-branch ]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
@@ -23,13 +23,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
|
||||||
- name: Run PMD
|
- name: Run PMD
|
||||||
id: pmd
|
id: pmd
|
||||||
uses: pmd/pmd-github-action@6d98898be0d59f46ec37dafcea33d8f8f55acfd1
|
uses: pmd/pmd-github-action@967a81f8b657c87f7c3e96b62301cb1a48efef29
|
||||||
with:
|
with:
|
||||||
rulesets: 'rulesets/java/quickstart.xml'
|
rulesets: 'rulesets/java/quickstart.xml'
|
||||||
sourcePath: 'src/main/java'
|
sourcePath: 'src/main/java'
|
||||||
|
analyzeModifiedFilesOnly: false
|
||||||
- name: Upload SARIF file
|
- name: Upload SARIF file
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
"creator": "Detekt",
|
"creator": "Detekt",
|
||||||
"description": "Static code analysis for Kotlin",
|
"description": "Static code analysis for Kotlin",
|
||||||
"iconName": "detekt",
|
"iconName": "detekt",
|
||||||
"categories": ["Code Scanning", "Kotlin"]
|
"categories": ["Code Scanning", "Kotlin"],
|
||||||
|
"enterprise": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -21,6 +21,8 @@ interface WorkflowProperties {
|
|||||||
categories: string[] | null;
|
categories: string[] | null;
|
||||||
|
|
||||||
creator?: string;
|
creator?: string;
|
||||||
|
|
||||||
|
enterprise?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WorkflowsCheckResult {
|
interface WorkflowsCheckResult {
|
||||||
@@ -59,6 +61,7 @@ async function checkWorkflows(
|
|||||||
|
|
||||||
const enabled =
|
const enabled =
|
||||||
!isPartnerWorkflow &&
|
!isPartnerWorkflow &&
|
||||||
|
workflowProperties.enterprise !== false &&
|
||||||
(await checkWorkflow(workflowFilePath, enabledActions));
|
(await checkWorkflow(workflowFilePath, enabledActions));
|
||||||
|
|
||||||
const workflowDesc: WorkflowDesc = {
|
const workflowDesc: WorkflowDesc = {
|
||||||
|
|||||||
Reference in New Issue
Block a user