Skip to content

Releases: github/safe-settings

2.1.13-rc.3

16 Sep 23:26
Compare
Choose a tag to compare

2.1.13-rc.2: fix code scanning alerts (#669)

16 Sep 23:15
c9247f5
Compare
Choose a tag to compare
* fix alerts

* fix alerts

* fix alerts

* fix alerts

* add tests and simplify Glob

* fix import to lowercase file

* removed debugging code

2.1.12-rc.1

29 Aug 21:07
Compare
Choose a tag to compare
detect conflict even when a single suborg config is changed

2.1.11-rc.2

23 Aug 17:08
fc5b693
Compare
Choose a tag to compare

What's Changed

  • fix: add or update fields in the existing environment or rulesets by @luvsaxena1 in #665
  • Add Actions workflow to delete old releases by @decyjphr in #667

New Contributors

Full Changelog: 2.1.11-rc.1...2.1.11-rc.2

2.1.11: Add Actions workflow to delete old releases (#667)

29 Aug 21:03
fc5b693
Compare
Choose a tag to compare
* Create delete-old-releases.yml

* Update delete-old-releases.yml

* Update delete-old-releases.yml

2.1.11-rc.1: Environments tolerate concise configuration (#649)

15 Aug 16:03
19e2691
Compare
Choose a tag to compare
* decompose unit tests, patch sync for environments

* remove logging, combine loops as per review comments

* Add NopCommand, log.error, and errors

* Allow concise config for Environments

This commit combines PR [616](https://github.com/github/safe-settings/pull/616) and [646](https://github.com/github/safe-settings/pull/646)

environments.js
Add defensive code to prevent the GitHub API from being called with undefined data.

In the UI, and API an environment can be added with just an name.
  Now, safe-settings permits this as well.
In the UI, and API an environment can be added without variables.
  Now, safe-settings permits this as well.
In the UI, and API an environment can be added without deployment_protection_rules.
  Now, safe-settings permits this as well.

environments.test.js
Add a test case for the scenario when there are zero existing environments
Add a test case for an environment name change
Add a test case inspired by PR 616 which adds 7 new environments with various attributes
Move expect statements out of aftereach() as there is now variability in what is expected across test cases.
  Specifically, when there is no existing environment, that environment should NOT be queried for variables nor deployment_protection_rules

* Update documentation: Environments permissions.

Addresses issue: [Environments do not get provisioned for repositories set to internal or private #623](https://github.com/github/safe-settings/issues/623)

Adds documentation for permissions required for safe-settings when Environments are used

[List Environments](https://docs.github.com/en/rest/deployments/environments?apiVersion=2022-11-28#list-environments) API requires:
```
The fine-grained token must have the following permission set:

"Actions" repository permissions (read)
```

[Create an environment variable](https://docs.github.com/en/rest/actions/variables?apiVersion=2022-11-28#create-an-environment-variable) API requires:
```
The fine-grained token must have the following permission set:

"Variables" repository permissions (write) and "Environments" repository permissions (write)
```

With permissions added, issue 623 was resolved.

2.1.10: Add code to handle both rename and reassign of default branch (#632)

22 May 19:55
f1193c2
Compare
Choose a tag to compare
* Add code to handle both rename and reassign of default branch

* reduced log data

* Make the code more readable

2.1.10-rc.1

15 May 17:38
f382e35
Compare
Choose a tag to compare
fix up initialization of MergeDeep to account for ignorableFields (#612)

2.1.9: feat: repository custom properties plugin (#626)

15 May 02:24
678b02e
Compare
Choose a tag to compare
* feat: repository custom properties plugin

* docs: custom properties

2.1.8

15 May 01:18
b6afb1a
Compare
Choose a tag to compare
Update create-release.yml (#629)