Skip to content

fix(config): ignore windows config file permission checks

Oscar Tovar requested to merge fix-config-file-permissions-errors into main

Description

Provides a temporary workaround for glab cli version 1.43.0 fails with permission e... (#7588). The config file permission checks is moved into a HasSecurePerms function. This is then separate into two different files - a default implementation and one for Windows. This separates the implementation so that we don't make assumptions based on the Linux/Unix permission model.

Related Issues

Relates to #7588

How has this been tested?

go test ./...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap

Merge request reports