Commit Graph

451 Commits

Author SHA1 Message Date
Robyn MacCallum aba64b989b
Update release-browser.yml (#9667) 2024-06-14 15:20:17 -04:00
Robyn MacCallum 87c1f9c2af
Update build-browser.yml (#9654) 2024-06-14 12:59:47 -04:00
Matt Bishop 2d43a12ce9
Conditionally use Codecov secret (#9626) 2024-06-13 15:08:52 -04:00
Vince Grassia 6233100754
Remove Bump CLI Formula workflow (#9601) 2024-06-12 09:06:02 -06:00
Opeyemi 9a35608fc3
Revert "restrict deployment to USDEV and protect environment (#9571)" (#9583)
This reverts commit f9faeeba4c.
2024-06-11 15:31:37 +01:00
Opeyemi f9faeeba4c
restrict deployment to USDEV and protect environment (#9571)
* restrict deployment to USDEV and protect environment

* remove converting env name to lower char
2024-06-11 12:03:04 +01:00
Dillon Beresford d594b680f9
[PM-7025] Add permission for test results (#9569)
* include check-run in workflows where secrets are used

* revert changes in build-cli workflow and add check-run to codecov

* assert token permissions

* include required permissions

* re-arrange permissions in alphabetical order

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-06-10 14:24:56 -04:00
Dillon Beresford 7fb9408202
[PM-7025] include check-run in workflows where secrets are used (#9135)
* include check-run in workflows where secrets are used

* revert changes in build-cli workflow and add check-run to codecov

* assert token permissions

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
2024-06-10 10:54:24 -05:00
Thomas Rittson 474a5a8c22
Add bit-cli directory to cli build workflow (#9491) 2024-06-06 09:06:27 +10:00
Matt Gibson 490e6c322d
Improve jest performance (#9496)
Utilizing resources based on thread availability improves performance vs fixed threading.

The linked issue for CI crashes has not been closed. Once this is solves, `runInBand` may improves performance in CI.
2024-06-04 10:40:41 -04:00
Michał Chęciński 1bf3a4b6eb
[BRE-94] Replace `dawidd6/action-download-artifact` with `bitwarden/gh-actions/download-artifacts` (#9494) 2024-06-04 16:25:53 +02:00
Opeyemi 107ac5dc38
Upgrade to macos-13 runner (#9457) 2024-05-31 13:58:10 -06:00
Daniel James Smith 2015f0964f
[PM-8229] Bump node to 20.13.1-LTS (#8078)
* Update .nvmrc from v18 to v20

* Update engines setting node 18->20 and npm 9->10

* Use yao-pkg/pkg instead of vercel/pkg

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
2024-05-30 13:24:06 +02:00
Alex Urbina 81c1456f6b
BRE-87 ADD: Slack notification enable feature and check in version-bump workflow (#9385) 2024-05-27 15:35:19 -06:00
Addison Beck 954d427539
Account for commercial licensed CLI code in pipelines (#9293)
* Add `:oss` prefix to preexisting npm commands

* Build `bit` and `oss` versions in `build-cli` workflow

* Update release job to publish new artifacts

* Rename build job tasks for clarity
2024-05-24 09:36:26 -05:00
Vince Grassia cdaded2049
BRE-64 - Fix version bump message (#9321) 2024-05-23 15:05:54 +02:00
Alex Urbina b0cc480853
FIX: version-auto-bump.yml trigger parameters (#9298) 2024-05-21 16:34:19 -06:00
Opeyemi acb153520e
[BRE-50] - Update Slack Notif Channel Ref (#9267)
* delete slack notif channel ref

* update slack channel reference
2024-05-21 19:22:15 +01:00
Alex Urbina f0a3d942c7
BRE-40 ADD: step to report upcoming release version to Slack (#9201) 2024-05-21 14:07:04 -04:00
MtnBurrit0 f07d1039c1
Display commit status in GH summary (#8918) 2024-04-29 08:25:59 -06:00
Cesar Gonzalez 5dc200577c
[PM-7663] Update Build Pipeline for Beta Labelling (#8903)
* [PM-7663] Update build pipeline for beta labeling

* [PM-7663] Update build pipeline for beta labelling

* [PM-7663] Update build pipeline for beta labelling

* [PM-7663] Update build pipeline for beta labelling

* [PM-7663] Update build pipeline for beta labelling

* [PM-7663] Incorporate build workflow for the Chrome manifest v3 beta

* [PM-7663] Update build pipeline for beta labeling

* [PM-7663] Update build pipeline for beta labeling

* [PM-7663] Update build pipeline for beta labeling

* [PM-7663] Ensure we can have a valid version number based on the github run id

* [PM-7663] Ensure we can have a valid version number based on the github run id

* [PM-7663] Reverting change made to the run id, as it will not function

* [PM-7663] Reverting change made to the run id, as it will not function

* [PM-7663] Reverting change made to the run id, as it will not function

* [PM-7663] Reverting change made to the run id, as it will not function

* [PM-7663] Reverting a typo

* Fix Duplicate `process.env

* Learn how to use

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-04-26 15:15:36 -04:00
watsondm 423d8c71b5
CLOUDOPS-1592 Remove artifacts R2 steps from desktop release workflows (#8897)
* CLOUDOPS-1592 Remove artifacts R2 steps from desktop release workflows

* CLOUDOPS-1592 Remove artifacts R2 steps from staged rollout workflow
2024-04-24 11:01:51 -04:00
MtnBurrit0 c8a3cb5708
[DEVOPS-1919] - Slack messages contain the incorrect git commit sha (#8813)
* Initial run to see what data I can access

* Update to use JQ

* Use dev action

* Implement artifact build sha
- Moved notify job to happen post artifact check
- Removed git sha job
- Updated jobs to use real artifact sha

* Update .github/workflows/deploy-web.yml

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>

* Handle web build triggers
- Update GH environment with commit as well

---------

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2024-04-19 13:39:06 -06:00
Cesar Gonzalez 1cde2dbaef
[PM-7527] Add `Build Manifest v3` build step to the build-browser.yml Github action (#8777)
* [PM-7527] Get MV3 build artifacts in main branch with clear messaging that that the build is not to be released

* [PM-7527] Add `Build Manifest v3` build step to the build-browser.yml Github action
2024-04-17 14:38:47 +00:00
Cesar Gonzalez 65f1bd2e3a
[PM-7527] Get MV3 build artifacts in main branch with clear messaging that that the build is not to be released (#8771)
* [PM-7527] Get MV3 build artifacts in main branch with clear messaging that that the build is not to be released

* Update .github/workflows/build-browser.yml

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>

---------

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2024-04-16 16:35:53 -05:00
Matt Bishop 7375dc9aab
Exclude not exploitable state from scanner SARIF results (#8603) 2024-04-04 08:41:39 -04:00
watsondm 07c172d3a3
Revert "CLOUDOPS-1369 Remove R2 bucket secrets and step from artifacts (#8534)" (#8546)
This reverts commit 7021e94475.
2024-03-29 09:43:06 -04:00
watsondm 7021e94475
CLOUDOPS-1369 Remove R2 bucket secrets and step from artifacts (#8534) 2024-03-28 16:44:40 -04:00
Matt Bishop 14e8e34b2d
Adjust scan permissions (#8513) 2024-03-27 12:35:13 -04:00
Daniel García 2064862afc
[PM-6832][PM-7030] Rollback macos runner version to 11 (#8450) 2024-03-26 12:23:01 -04:00
Alex Urbina 2ae6fbe275
DEVOPS-1843 Fix US DEV Web Vault deploys one commit behind (#8458)
* DEVOPS-1843 REFACTOR: Trigger web vault deploy step to send the build-web run-id to deploy-web workflow

* DEVOPS-1843 ADD: build-web-run-id input to deploy-web workflow to download specific run_id artifact

* DEVOPS-1843 FIX: build-web-run-id input in build-web workflow

* DEVOPS-1843 REFACTOR: build-web-run-id parameter type to number

* DEVOPS-1843 ADD: build-web-run-id input to deploy-web workflow to workflow_dispatch

* DEVOPS-1843 FIX: build-web-run-id type in deploy-web.yml

* DEVOPS-1843 REFACTOR: web vault deploy action to use GitHub Run ID

* DEVOPS-1843 REFACTOR: cloud asset download steps in deploy-web.yml

* DEVOPS-1843 REFACTOR: description for build-web workflow Run ID

Co-authored-by: MtnBurrit0 <77340197+mimartin12@users.noreply.github.com>

---------

Co-authored-by: MtnBurrit0 <77340197+mimartin12@users.noreply.github.com>
2024-03-25 11:05:25 -06:00
Vince Grassia b81d6a78db
Version Bump Workflow - Fix set-final-version-output step (#8468) 2024-03-25 16:15:05 +01:00
Vince Grassia 4c89156b0c
Remove gh-pages job as it's no longer used (#8434) 2024-03-21 19:56:49 -06:00
Matt Bishop 087d174194
Scanning (#8079)
* Scanning

* Indicate test code

* Set test inclusions correctly

* Provide full depth for Sonar scans

* Latest standards
2024-03-18 12:53:08 -04:00
Vince Grassia 6b1da67f3a
DEVOPS-1840 - Update version bump workflow for automatic version calculation (#8306) 2024-03-12 11:20:40 -06:00
Todd Martin c10a59b019
[PM-6695][PM-6717] Revert Linux build to Ubuntu 20.04 runner (#8289)
* Revert Linux build to Ubuntu 20.04 runner

* Updated notes.
2024-03-11 12:40:14 -04:00
Joseph Flinn 1259890f17
Update Deploy Web Inputs (#8236)
* Switch from bool to string comparison

* Switching to a simpler boolean logic for file deletion
2024-03-06 20:07:54 -08:00
renovate[bot] bd4453cce5
[deps] DevOps: Update gh minor (#8179)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-06 13:49:15 -05:00
Daniel García af2c75cb4b
Update snap base to core22 (#8224)
* Update snap base to core22

* Add version warnings to the workflows
2024-03-06 13:10:56 -05:00
Joseph Flinn 06993594cc
azcopy - Switch hash comparison from timestamp (#8218)
* Switch from timestamp to hash comparison

* Switch flag placement

* Add a value to the --compare-hash option

* Setting compare-hash to a string value

* undo debug default
2024-03-06 07:22:37 -08:00
Opeyemi 450b5b6e8c
Update Failure Jobs (#8223) 2024-03-06 14:59:18 +01:00
Alex Urbina ed2bd7c900
DEVOPS-1826 Add sync-delete-destination-files flag to stop deleting remote files in Storage Accounts (#8200)
* DEVOPS-1826 ADD: sync-not-delete-destination-files flag to deployment workflow

* DEVOPS-1826 REFACTOR: sync utility to delete destination files

* DEVOPS-1826 FIX: sync-delete-destination-files step in deploy-web.yml

* DEVOPS-1826 ADD: invert-sync-delete-destination-files option to deploy-web.yml

* DEVOPS-1826 REFACTOR: deploy-web.yml with invert-default-sync-delete-destination-files-value

* DEVOPS-1826 REFACTOR: sync-delete-destination-files value in deploy-web.yml

* DEVOPS-1826 REFACTOR: debug mode default value
2024-03-05 17:03:49 -06:00
Alex Urbina 621205232a
DEVOPS-1743 REFACTOR: environment name for Web Vault deployment (#8148) 2024-03-01 10:47:58 -06:00
MtnBurrit0 bf884ac279
Add git hash to all lower environment builds (#8142) 2024-02-28 12:01:15 -07:00
Vince Grassia 1c5cf18746
DEVOPS-1800 - Migrate Secrets (#8139) 2024-02-28 11:06:50 -07:00
Alex Urbina e833e93b3b
DEVOPS-1743 Web Vault Migration workflow improvements (#7966)
* DEVOPS-1743 REFACTOR: Azure Storage Account sync process

* DEVOPS-1743 REFACTOR: deploy-web.yml to include branch or tag information on run

* DEVOPS-1743 REFACTOR: Slack channel for devops alerts

* DEVOPS-1743 DEBUG: display index.html content

* DEVOPS-1743 REFACTOR: Azure storage blob sync command in deploy-web.yml

* DEVOPS-1743 Update Azure Storage Account connection string retrieval

* DEVOPS-1743 DEGUG: azcopy version check before syncing to Azure Storage Account

* DEVOPS-1743 REFACTOR: azcopy command in deploy-web.yml

* DEVOPS-1743 REFACTOR: add recursive flag to azcopy command

* DEVOPS-1743 REFACTOR: azcopy command in deploy-web.yml

* DEVOPS-1743 FIX: azcopy sync command in deploy-web.yml

* DEVOPS-1743 FIX: URL formatting in deploy-web.yml

* DEVOPS-1743 ADD: azcopy login command to deploy-web.yml

* DEVOPS-1743 ADD: AZCOPY_AUTO_LOGIN_TYPE to AZCLI

* DEVOPS-1743 REFACTOR: azcopy sync command to include date parameter

* DEVOPS-1743 REFACTOR: deploy-web.yml script to fix sync command

* DEVOPS-1743 ADD: Azure Storage Account sync with debug logging

* DEVOPS-1743 Add debug logs for azcopy

* DEVOPS-1743 ADD: sync-utility parameters to use either az sync or azcopy in subsequent steps in deploy-web.yml

* DEVOPS-1743 FIX: conditional statements in deploy-web.yml

* DEVOPS-1743 ADD: debug logs for azcopy utility

* DEVOPS-1743 REFACTOR: sync utility to az-sync

* DEVOPS-1743 REFACTOR: azcopy logs and sync utility

* DEVOPS-1743 REFACTOR: sync-utility option to deploy-web workflow

* DEVOPS-1743 REFACTOR: AZCOPY_AUTO_LOGIN_TYPE to SPN

* DEVOPS-1743 ADD: azcopy login status command

* DEVOPS-1743 ADD: AZCOPY environment variables for SPA authentication

* DEVOPS-1743 REFACTOR: AZCOPY_SPA_APPLICATION_ID and AZCOPY_TENANT_ID environment variables

* DEVOPS-1743 FIX: azcopy sync destination URL

* DEVOPS-1743 Update AZCOPY environment variables

* DEVOPS-1743 REFACTOR: deploy-web.yml with AZCOPY environment variables

* DEVOPS-1743 FIX: sync command in deploy-web.yml

* DEVOPS-1743 ADD: retrieval of Storage Account SPN Client Secret for azcopy

* DEVOPS-1743 ADD: retrieval of Storage Account SPN Application ID and Tenant ID for azcopy

* DEVOPS-1743 REFACTOR: sync-utility to azcopy in deploy-web.yml

* DEVOPS-1743 REFACTOR: secrets retrieval IDs in deploy-web.yml

* DEVOPS-1743 DELETE: unnecessary commands in deploy-web.yml

* DEVOPS-1743 REFACTOR: secrets retrieval in deploy-web.yml

* DEVOPS-1743 ADD: debug mode to deploy-web workflow

* DEVOPS-1743 REFACTOR: deploy-web.yml to remove unnecessary conditional checks
2024-02-27 14:48:36 -05:00
Opeyemi 8fb5ef3035
Remove individual linter file (#7963) 2024-02-15 11:15:46 -05:00
Oscar Hinton c73b263ec8
Remove CLOC jobs (#7893) 2024-02-13 15:08:03 +01:00
Vince Grassia bf16682f42
Fix while loop (#7918) 2024-02-12 18:16:00 +00:00
Vince Grassia 90328b1eba
Fix while loop logic (#7910) 2024-02-12 07:35:35 -08:00