@@ -1530,14 +1530,6 @@ func needsGitCommands(safeOutputs *SafeOutputsConfig) bool {
15301530 return safeOutputs .CreatePullRequests != nil || safeOutputs .PushToPullRequestBranch != nil
15311531}
15321532
1533- // detectTextOutputUsage checks if the markdown content uses ${{ needs.activation.outputs.text }}
1534- func (c * Compiler ) detectTextOutputUsage (markdownContent string ) bool {
1535- // Check for the specific GitHub Actions expression
1536- hasUsage := strings .Contains (markdownContent , "${{ needs.activation.outputs.text }}" )
1537- log .Printf ("Detected usage of activation.outputs.text: %v" , hasUsage )
1538- return hasUsage
1539- }
1540-
15411533// generateYAML generates the complete GitHub Actions YAML content
15421534
15431535// isActivationJobNeeded determines if the activation job is required
@@ -1566,43 +1558,3 @@ func (c *Compiler) detectTextOutputUsage(markdownContent string) bool {
15661558// generateCreateAwInfo generates a step that creates aw_info.json with agentic run metadata
15671559
15681560// generateOutputCollectionStep generates a step that reads the output file and sets it as a GitHub Actions output
1569- // parseBaseSafeOutputConfig parses common fields (max, min, github-token) from a config map
1570- func (c * Compiler ) parseBaseSafeOutputConfig (configMap map [string ]any , config * BaseSafeOutputConfig ) {
1571- // Parse max
1572- if max , exists := configMap ["max" ]; exists {
1573- if maxInt , ok := parseIntValue (max ); ok {
1574- config .Max = maxInt
1575- }
1576- }
1577-
1578- // Parse github-token
1579- if githubToken , exists := configMap ["github-token" ]; exists {
1580- if githubTokenStr , ok := githubToken .(string ); ok {
1581- config .GitHubToken = githubTokenStr
1582- }
1583- }
1584- }
1585-
1586- // computeAllowedDomainsForSanitization computes the allowed domains for sanitization
1587- // based on the engine and network configuration, matching what's provided to the firewall
1588- func (c * Compiler ) computeAllowedDomainsForSanitization (data * WorkflowData ) string {
1589- // Determine which engine is being used
1590- var engineID string
1591- if data .EngineConfig != nil {
1592- engineID = data .EngineConfig .ID
1593- } else if data .AI != "" {
1594- engineID = data .AI
1595- }
1596-
1597- // Compute domains based on engine type
1598- // For Copilot with firewall support, use GetCopilotAllowedDomains which merges
1599- // Copilot defaults with network permissions
1600- // For other engines, use GetAllowedDomains which uses network permissions only
1601- if engineID == "copilot" {
1602- return GetCopilotAllowedDomains (data .NetworkPermissions )
1603- }
1604-
1605- // For Claude, Codex, and other engines, use network permissions
1606- domains := GetAllowedDomains (data .NetworkPermissions )
1607- return strings .Join (domains , "," )
1608- }
0 commit comments