Skip to content

Commit

Permalink
🦅 Enable TSA Per Requirement ✈️ (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagilson authored Oct 7, 2024
1 parent 38edf54 commit 1cd3b7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .config/tsaoptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"instanceUrl": "https://devdiv.visualstudio.com/",
"template": "TFSDEVDIV",
"projectName": "DEVDIV",
"areaPath": "DevDiv\\NET Tools\\SDK",
"iterationPath": "DevDiv",
"notificationAliases": [ "[email protected]" ],
"repositoryName":"vscode-dotnet-runtime",
"codebaseName": "vscode-dotnet-runtime"
}
2 changes: 2 additions & 0 deletions 1es-azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ extends:
policheck:
enabled: true
exclusionsFile: $(System.DefaultWorkingDirectory)\PoliCheckExclusions.xml
tsa:
enabled: true
stages:
- stage: Internal
jobs:
Expand Down

1 comment on commit 1cd3b7b

@1970eli
Copy link

@1970eli 1970eli commented on 1cd3b7b Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is a better file to use yami # This YAML file configures the Azure Pipeline for our project.
extends:

Ensure this path is correct and accessible

file: path/to/your/template.yml

policheck:
enabled: true
exclusionsFile: $(System.DefaultWorkingDirectory)\PoliCheckExclusions.xml

tsa:
enabled: true

stages:

  • stage: Internal
    jobs:
    • job: Build
      displayName: "Build Job"
      steps:

      • script: |
        echo "Building the project"
        if [ $? -ne 0 ]; then
        echo "Build failed" >&2
        exit 1
        fi
        displayName: "Execute Build Script"

      • task: PublishBuildArtifacts@1
        inputs:
        PathtoPublish: '$(Build.ArtifactStagingDirectory)'
        ArtifactName: 'drop'
        displayName: "Publish Build Artifacts"

      Example of an additional step

      • script: echo "Running tests"
        displayName: "Run Tests"
    • job: Deploy
      dependsOn: Build
      steps:

      • script: |
        echo "Deploying the project"

        Add deployment steps here

        if [ $? -ne 0 ]; then
        echo "Deployment failed" >&2
        exit 1
        fi
        displayName: "Execute Deployment Script"

Error handling and notifications

jobs:

  • job: HandleErrors
    displayName: "Error Handling Job"
    condition: failed()
    steps:
    • script: |
      echo "An error occurred during the pipeline execution."

      Send notifications or perform error handling tasks

      exit 1
      displayName: "Handle Errors"

Auto-Update mechanism (Placeholder for actual logic)

jobs:

  • job: AutoUpdate
    displayName: "Auto-Update Job"
    steps:
    • script: |
      echo "Checking for script updates..."

      Implement actual update logic here

      echo "Script is up to date."
      displayName: "Check for Updates"

Send feedback (Placeholder for actual logic)

jobs:

  • job: SendFeedback
    displayName: "Send Feedback Job"
    steps:
    • script: |
      echo "Sending feedback..."

      Implement feedback sending logic here

      echo "Feedback sent successfully."
      displayName: "Send Feedback"

Please sign in to comment.