Commit Graph
15 Commits
Author SHA1 Message Date
dependabot[bot]andWalt f685630aea Bump github/codeql-action from 2 to 3 (#35847)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Walt <walt@goteleport.com>
2023-12-26 21:06:39 +00:00
Walt e27c399319 Run CodeQL when the CodeQL workflow is changed (#35895)
* Run CodeQL when the CodeQL workflow is changed

This is useful for double checking changes to the workflow don't
introduce regressions the we wouldn't notice until the next cron.

* Refactor to use paths: instead of dorny/changed-files
2023-12-26 16:51:37 +00:00
dependabot[bot] 5e901fffce Bump actions/setup-go from 4 to 5 (#35612)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 21:46:13 +00:00
Mike Jensen 7452614827 Remove CodeQL Scanning for release branches (#33723)
* Remove CodeQL Scanning for release branches

In RFD 114 (PR #32233) we setup mirroring for the Teleport release branches to the `teleport-sec-scan` repos.  There are several advantages to moving the CodeQL scanning to these repos:
* It removes the manual process described in `preflight` to update the codeql scanning branch
* It solves the issue of alerts being repeatedly opened and closed as they are found on release branches and only fixed in master, for example: https://github.com/gravitational/teleport/security/code-scanning/560

As such CodeQL has already been configured on these repos and the initial findings triaged: https://github.com/gravitational/teleport-sec-scan-1/blob/master/.github/workflows/codeql-mirror.yml

* codeql: Comment relaese branch scanning
2023-10-20 17:08:16 +00:00
dependabot[bot]andWalt a84ed24078 Bump actions/checkout from 3 to 4 (#31413)
* Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update .github/workflows/os-compatibility-test.yaml

* Do not upgrade checkouts that run in centos:7

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Walt <walt@goteleport.com>
2023-09-15 21:38:13 +00:00
Mike Jensen 1b9420dd38 CodeQL: Fix Go 1.21 build fix and update branch list (#31892)
* CodeQL: Set go version based off go.mod

* CodeQL: Update branch list to drop v11 and include v14
2023-09-14 21:40:25 +00:00
Mike Jensen 2125ece87b Enable CodeQL security-extended query suite (#28311) 2023-07-31 16:25:53 +00:00
Mike Jensen bab1a5d54b Build change for when go caching should be used (#27209)
* Build change for when go caching should be used

This commit does the following:
* Updates all `setup-go` actions to use v4 (which has caching enabled by default)
* For `shared-workflow` jobs caching is left enabled due to the presumed small size
* For `teleport` jobs caching is now disabled due to the size exceeding the cache limit

This should make all of the mentioned jobs a little faster.

* Update build-api.yaml to re-enable caching
2023-06-02 15:42:56 +00:00
Mike Jensen 7e75aeff1d Add CodeQL Config update requirement to preflight.md docs (#25672)
* Add CodeQL Config update requirement to preflight.md docs

* .github/workflows/codeql.yml: Update branch list to include v13
2023-05-05 15:37:40 +00:00
Mike Jensen 2e2911438d Update CodeQL Schedule to scan release branches (#23169)
* Update CodeQL Schedule to scan release branches

This allows us to switch our release branches to also use the scheduled CodeQL check so we can remove CodeQL from the PR flow for our release branches too.

* Use go dependency caching with auto build

This change speeds up the build by about ~2 minutes (10%)
2023-03-17 15:12:00 +00:00
Mike Jensen dab1eb5e27 CodeQL improvements (#22854)
This makes two changes:
* Reduces action instance type to 16 cores.  This will half the cost without a significant speed difference
* Switch from `make full` to CodeQL Auto Build.  This speeds up the build by about 10 minutes.  I confirmed there is not a reduction in the scan coverage
2023-03-09 21:56:47 +00:00
Mike Jensen 10bd548162 Switch CodeQL to scheduled (#21883)
We still plan to address this root issue, and are tracking making CodeQl faster so it can be a required PR check: https://github.com/gravitational/SecOps/issues/269

However, until then we need to switch this job to be a scheduled task rather than on every PR and push.  This is partly cost motivated, but also we are already hitting our timeouts.  This PR also increases the analysis timeout so that the daily job can be sure to complete.
2023-02-16 17:30:59 +00:00
rosstimothy 3ebbfdd222 Batch Dependabot PRs (#19745) 2023-01-05 13:13:05 +00:00
Mike Jensen 6692d5e18f CodeQL: Set a timeout limit to ensure jobs don't hang (#19224)
Recently the CodeQL jobs started hanging, this is a stop gap measure to make sure action costs remain under control.
2022-12-09 00:45:06 +00:00
Mike Jensen 2d345bd0e7 CodeQL: Rename from codeql-analysis.yml to codeql.yml (#18663) 2022-11-22 16:37:41 +00:00