Skip to content

Commit ed82161

Browse files
Merge branch 'main' into fix-actions-unpinned-reusable-workflows
2 parents 710a753 + 56df417 commit ed82161

275 files changed

Lines changed: 2278 additions & 773 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/instructions/ql-files.instructions.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/ql/lib/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.5.0
2+
3+
### Breaking Changes
4+
5+
* The `codeql.actions.security.SelfHostedQuery` module has been removed because runner labels do not reliably distinguish self-hosted runners from managed runners.
6+
7+
### Minor Analysis Improvements
8+
9+
* GitHub Actions analysis now recognizes untrusted data in `github.event.merge_group` for workflows triggered by the `merge_group` event.
10+
111
## 0.4.40
212

313
### Minor Analysis Improvements
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* Added an option to `EnvironmentCheck` to become specified by a MaD model, otherwise it will continue as the default it previously was. Without adding models to `actions/ql/lib/ext/config/deployment_environment.yml` the behavior of every query will be unchanged. When models are added queries using `ControlCheck` may find more results in cases where an enironment is no longer a sufficient sanitizer.

actions/ql/lib/change-notes/2026-07-27-merge-group-event-source.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

actions/ql/lib/change-notes/2026-08-04-remove-self-hosted-query-library.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 0.5.0
2+
3+
### Breaking Changes
4+
5+
* The `codeql.actions.security.SelfHostedQuery` module has been removed because runner labels do not reliably distinguish self-hosted runners from managed runners.
6+
7+
### Minor Analysis Improvements
8+
9+
* GitHub Actions analysis now recognizes untrusted data in `github.event.merge_group` for workflows triggered by the `merge_group` event.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.4.40
2+
lastReleaseVersion: 0.5.0

actions/ql/lib/codeql/actions/config/Config.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,12 @@ predicate untrustedGhCommandDataModel(string cmd_regex, string flag) {
164164
predicate actionsPermissionsDataModel(string action, string permission) {
165165
Extensions::actionsPermissionsDataModel(action, permission)
166166
}
167+
168+
/**
169+
* MaD models for deployment environments
170+
* Fields:
171+
* - name: deployment environment name, e.g. `Public CI`
172+
*/
173+
predicate enabledDeploymentEnvironmentDataModel(string name) {
174+
Extensions::enabledDeploymentEnvironmentDataModel(name)
175+
}

actions/ql/lib/codeql/actions/config/ConfigExtensions.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,12 @@ extensible predicate untrustedGhCommandDataModel(string cmd_regex, string flag);
8888
* - see https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token for documentation of token permissions.
8989
*/
9090
extensible predicate actionsPermissionsDataModel(string action, string permission);
91+
92+
/**
93+
* Holds for deployment environments that exist with `name` for a given repository.
94+
* * - 'name' is the name of the environment defined.
95+
* E.g. for the deployment environment `environment: EnvironmentInRepo`, `name` is `EnvironmentInRepo`.
96+
* Requires this to be externally supplied but once done can be used to
97+
* toggle precision of whether that suffices or not as a control check by contributing to `EnvironmentCheck`.
98+
*/
99+
extensible predicate enabledDeploymentEnvironmentDataModel(string name);

0 commit comments

Comments
 (0)