Граф коммитов

73 Коммитов

Автор SHA1 Сообщение Дата
Jon Buckley 1748d4579a
fix(docker): Use git tag from lookup
The `GITHUB_REF_NAME` variable only works for tags pushed by developers.
When calling the docker.yml workflow from tag-release.yml, the contents
of `GITHUB_REF_NAME` is `main`, the branch that the GitHub Action is
running on. This will fix the version output for x.y.0 tags created by
tag-release.yml.
2024-10-12 14:21:29 -04:00
Jon Buckley 2593a55bc5
fix(docker): Use correct variable for git tag 2024-09-12 08:57:27 -04:00
dependabot[bot] 5c365cb586
chore(deps): bump slackapi/slack-github-action from 1.26.0 to 1.27.0
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.26.0...v1.27.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 07:01:19 +00:00
Eric Maydeck 7bfba49c97
fix(docker): using inputs.<input> for workflow input validation 2024-08-28 11:23:14 -06:00
Jon Buckley f509670bb2
fix(docker): Call docker build after tagging a release 2024-08-21 15:03:18 -04:00
Jon Buckley bb5615ac19
feat(docker): Add tag on push event 2024-07-26 20:05:06 -04:00
Jon Buckley 1dc8efeb50
feat(docker): Enable yarn cache for Github Actions 2024-07-24 13:48:39 -04:00
Jon Buckley b950aae5d1
fix(docker): Specify fxa-mono Dockerfile 2024-07-24 13:32:37 -04:00
Jon Buckley b71529ba25
feat(docker): Add docker build and push with Github Actions 2024-07-24 12:42:29 -04:00
Eric Maydeck 473f6aeeda
feat(assets): begin uploading assets to GCS buckets 2024-05-31 16:28:08 -06:00
dependabot[bot] 69bd72ef99
chore(deps): bump slackapi/slack-github-action from 1.25.0 to 1.26.0
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-19 06:56:22 +00:00
dependabot[bot] 47a9480754
chore(deps): bump slackapi/slack-github-action from 1.24.0 to 1.25.0
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-29 06:18:32 +00:00
dependabot[bot] 6e5432ba75
chore(deps): bump github/codeql-action from 2 to 3
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>
2023-12-14 06:18:21 +00:00
dependabot[bot] 7d50fb9ebe
chore(deps): bump actions/stale from 8 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v8...v9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-08 06:23:18 +00:00
dependabot[bot] 3c351dcf3a
chore(deps): bump actions/setup-node from 3 to 4
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 23:36:55 +00:00
dependabot[bot] 5ed1e71d9b
chore(deps): 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>
2023-09-05 06:52:03 +00:00
Valerie Pomerleau fa400c51ec
feat(settings): Generate recovery key as PDF
Because:

* We want to include more information in the recovery key file, and rendering for localized content in .txt format was inconsistent accross apps and platforms.

This commit:

* Add react-pdf library and associated dependencies for client-side PDF generation
* Add DownloadRecoveryKeyPDF component to handle PDF generation and download
* Create RecoveryKeyPDF with styling and l10n
* Update tests for recovery key
* Add pdf-parse library to test PDF content with Playwright
* Add font assets to fxa-settings for PDF creation
* Remove fonts from CDN assets folder (no longer needed)
* Use mono font for account recovery key in React app and PDF to help user differentiate between similar characters such as O and 0

Closes #FXA-7223
2023-08-11 10:41:53 -07:00
Valerie Pomerleau d309ca3253
feat(assets): Upload fonts for PDF to CDN (take 2)
Because:

* First attempt to upload fonts did not work because target dir was not allowed

This commit:

* Trying again with existing dir

Issue #FXA-7223
2023-07-28 14:19:47 -07:00
Valerie Pomerleau 74d784da42
feat(assets): Add font file uploads for PDF generation
Because:

* Fonts need to be available from CDN for client-side PDF generation

This commit:

* Adds font files to support basic font weights for fxa's supported languages
* Add font files to asset upload script
* Add documentation about font files

Issue #FXA-7223
2023-07-28 07:54:28 -07:00
Lauren Zugai ee83be918f
fix(ci): Capture grep -q exit code 1 to fix string extraction job
Because:
* Our string extraction CI job is failing when changes are found and l10n-devs has not been requested for review yet

This commit:
* Captures grep exit code to compare against directly, as grep -q "fxa-l10n" was failing and breaking out of the command pipeline with exit code 1
2023-07-21 18:36:20 -05:00
Lauren Zugai b45b60e120
fix(ci): Add -rf to dir removal to fix string extraction test
Because:
* This directory is not always present. When we try to just 'rm' when it doesn't exist, a hidden error is thrown

This commit:
* Simply adds "-rf" to the rm command for ./locale/templates/LC_MESSAGES/*

Fixes 7862
2023-07-14 17:55:46 -05:00
Jon Buckley ef40392298
chore(release): Make workflow_dispatch parameters explict 2023-06-07 17:57:01 -04:00
Jon Buckley 5c5c357789
fix(release): Only push branch and tag if version number is set 2023-06-07 17:46:20 -04:00
Jon Buckley f908970c43
fix(release): Fetch all git tags 2023-06-07 17:37:47 -04:00
Jon Buckley 8c58aa7680
Revert "Revert "chore(releases): compute the next train version in gh action""
This reverts commit 63fb8d49a0.
2023-06-07 17:35:38 -04:00
Bianca Danforth 63fb8d49a0
Revert "chore(releases): compute the next train version in gh action"
This reverts commit 84c2510c45.
2023-06-07 15:44:59 -04:00
Jon Buckley b94a60df42
fix(release): Env var must be in same command as echo 2023-06-07 15:34:35 -04:00
Bianca Danforth 304d0f2cf5
[skip-ci] fix(release): add env name to echo statement 2023-06-07 15:01:49 -04:00
Jan-Erik Rediger 384e490f71
task(CI): Enable Glean probe-scraper task 2023-05-30 12:25:47 -05:00
Barry Chen 84c2510c45
chore(releases): compute the next train version in gh action 2023-05-25 07:53:03 -05:00
Dan Schomburg 9489d3eb3e
Merge pull request #15323 from mozilla/FXA-7081
chore(many): Remove npm run commands
2023-05-18 17:29:43 -07:00
dependabot[bot] ccf76f929d
chore(deps): bump slackapi/slack-github-action from 1.23.0 to 1.24.0
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 07:01:05 +00:00
dschom ce114f7262
chore(many): Remove npm run commands
Because:
- We are cleaning up npm scripts in preparation for nx

This Commit:
- Replaces npm run with yarn
- Removes npm-run-all package
- Replaces npm install -g with yarn global add
- Updates references to npm install or npm run in readme files
2023-05-17 11:24:09 -07:00
Vijay Budhram c404420989
feat(url): Update action 2023-05-10 13:51:16 -04:00
Vijay Budhram d2fc201d6c
feat(action): Update github action tag train 2023-05-10 13:46:03 -04:00
Wil Clouser 5ce93e40a6
chore(release): Drop AUTHORS file 2023-04-18 16:14:52 -07:00
Wil Clouser b4a5218084
chore: create release github action
Because:

* We could encourage more consistent builds by using an environment
  built in an action instead of on developer machines

This commit:

* Creates a github action
2023-04-07 12:01:09 -07:00
dependabot[bot] 9b39745923
chore(deps): bump actions/stale from 7 to 8
Bumps [actions/stale](https://github.com/actions/stale) from 7 to 8.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v7...v8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 07:01:43 +00:00
Barry Chen da11e63832
chore(deps): upgrade to node.js 18
Because:
 - we want to use the latest node LTS major version

This commit:
 - upgrades FxA to use node 18, with two workarounds
   - Webpack uses a hash algorithm that's no longer supported by default
     in node 17+, causing build failures; --openssl-legacy-provider is
     used as the workaround
   - dns.lookup in node 17+ by default returns the results in the same
     order as they are from the resolver, which could lead to
     'localhost' resolving to ::1; --dns-result-order=ipv4first is used
     as the workaround
2023-03-20 13:28:10 -05:00
dschom 1d709000fe
task(many): Only clone l10n once and combine ftl files.
Because:
- We want to avoid redundant git clone operations
- We want to reduce the number of ftl bundles requested on the client side.

This Commit:
- Adds _scripts/l10n/*.sh for conducting l10n build operations
- Bundles ftl files together into ftl main
- Removes bundle prop on AppLocalizer, so that it uses the default, [main.ftl]
- Replace - with _ in locale names when resolving ftl files
- Removes clone-l10n.sh
2023-03-15 11:30:44 -07:00
Bryan Olsson 010d372217
chore(l10n): point workflow to look at correct folder
Because:

* L10n workflow to flag l10n reviewers to gettext changes fails silently because npx grunt script doesn't overwrite previously extracted files.

This commit:

* Removes files from target folder to ensure all changes in files are present.
2023-02-16 11:24:29 -08:00
dependabot[bot] 2cdb57e974
chore(deps): bump actions/stale from 6 to 7
Bumps [actions/stale](https://github.com/actions/stale) from 6 to 7.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v6...v7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-21 06:09:35 +00:00
Barry Chen f7bb883395
chore(GH Actions): auto-close stale PRs
Because:
 - people can always re-open their PRs

This commit:
 - use a GH action to auto-close "stale" PRs
2022-11-29 10:37:54 -06:00
Alex 3fd8e3a9f9
build(worfklows): harden pull-legal-docs.yml permissions
This PR adds explicit [permissions section](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions) to workflows.
This is a security best practice because by default workflows run with [extended set of permissions](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) (except from `on: pull_request` [from external forks](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)).
By specifying any permission explicitly all others are set to none.
By using the principle of least privilege the damage a compromised workflow can do (because of an [injection](https://securitylab.github.com/research/github-actions-untrusted-input/) or compromised third party tool or action) is restricted.
It is recommended to have [most strict permissions on the top level](https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions) and
grant write permissions on [job level](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) case by case.
2022-11-01 23:32:58 +01:00
Reino Muhl 9fc1193385
feat(scripts): pull pdfs from legal-docs
Because:

- We need to pull the latest pdfs from legal-docs into the fxa
  assets folder.

This commit:

- Create a script to copy the latest pdfs into assets/legal.
- Create a Github Action to automatically pull in the pdfs from
  legal-docs, and open a pull request to move pdfs into assets/legal.

Closes #fxa-5100
2022-10-20 18:22:29 -04:00
dependabot[bot] 106d8467a4
chore(deps): bump slackapi/slack-github-action from 1.22.0 to 1.23.0
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.22.0...v1.23.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-13 06:27:24 +00:00
Bryan Olsson e6899f4b33
chore(l10n): improve checking of reviewer status to reduce redundant review requests 2022-10-11 16:45:57 -07:00
Bryan Olsson c93cae02aa
chore(l10n): Revise workflow to fetch base commit
Because:

* Action fails under certain conditions when it tries to checkout the base SHA but it cannot be found

This commit:

* Adds an explicit fetch for the base SHA to ensure it can be checked out
2022-10-03 12:44:24 -07:00
Bryan Olsson 9a0e344e7b
chore(l10n): check if PR breaks build, flag gettext reviews
Because:

* Certain modern javascript syntax breaks the l10n-extract process.
* Gettext strings currently are not reviewed for localization issues until export to Pontoon

This commit:

* Runs "npx grunt l10n-extract" whenever a PR makes a change to fxa-content-server. An unsupported syntax will cause the build to fail, alerting ahead of time.
* Flags mozilla/fxa-l10n for review if a change creates new gettext strings
2022-09-22 15:31:04 -07:00
dependabot[bot] 2934ce6d41
chore(deps): bump slackapi/slack-github-action from 1.21.0 to 1.22.0
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.21.0...v1.22.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 06:49:54 +00:00