Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load reusable workflows next to the actions in use #65

Merged
merged 5 commits into from
Sep 5, 2023
Merged

Conversation

rajbos
Copy link
Collaborator

@rajbos rajbos commented Sep 5, 2023

What are the incoming changes?

🤖 Generated by Copilot at 62a08a9

This pull request improves the functionality and security of the PowerShell scripts that load and analyze the actions and reusable workflows used in the organization's workflows. It adds support for environment variables, output file location, error handling, YAML parsing, and PAT masking. It also fixes some minor typos and formatting issues in the scripts and the .env file.

🤖 Generated by Copilot at 62a08a9

PowerShell scripts
enhanced with variables
autumn of security

Why are they needed

How has this been achieved?

🤖 Generated by Copilot at 62a08a9

  • Add environment variables for GitHub API access and output file (link)
  • Import environment variables from .env file and set them in session (link)
  • Fix typo in write command (link)
  • Check GITHUB_WORKSPACE variable and write output file accordingly (link)
  • Store and restore current location before and after running script (link, link)
  • Install powershell-yaml module if not present and use it to parse YAML files (link, link)
  • Mask PAT in URLs with asterisks to prevent exposure (link, link)
  • Create custom object for each action used in workflow with link, file, repo, and type (link, link)
  • Check for duplicates in $summarized array by both link and type (link)
  • Add type property to custom object for new items in $summarized array (link)
  • Comment out testing code that limits number of repos to process (link, link)
  • Remove empty line and extra space (link, link)

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

@rajbos rajbos merged commit 104493b into main Sep 5, 2023
10 checks passed
@rajbos rajbos deleted the dependencies branch September 5, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant