Skip to content

Commit e3987d0

Browse files
authored
[TECHNICAL] Remove PATs from workflows (#4824)
* ci: replace PATs for tokens generated by a GitHub app * chore: add calens files
1 parent f7ddd25 commit e3987d0

4 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/sbom.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ jobs:
9898
diff sbom_prev_normalized.json sbom_current_normalized.json || true
9999
fi
100100
101+
# Generate a token to perform the commit in the next step
102+
- name: Generate GitHub App token
103+
id: app-token
104+
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
105+
with:
106+
app-id: ${{ secrets.TRANSLATION_APP_ID }}
107+
private-key: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
108+
101109
# Commit the SBOM file only if it differs from master to avoid unnecessary commits
102110
- name: Commit and push updated SBOM
103111
if: steps.compare.outputs.no_changes == 'false'
@@ -107,4 +115,4 @@ jobs:
107115
files: sbom.json
108116
email: devops@owncloud.com
109117
name: ownClouders
110-
access_token: ${{ secrets.GH_PAT }}
118+
access_token: ${{ steps.app-token.outputs.token }}

changelog/unreleased/4818

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Enhancement: Workflow to use the translation-sync reusable workflow
2+
3+
A new workflow that uses the translation-sync reusable workflow has been added in order to update translations from transifex
4+
5+
https://github.com/owncloud/android/pull/4818

changelog/unreleased/4824

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Change: Replace PATs for tokens generated by a GitHub app
2+
3+
PATs have been replaced by tokens generated by a GitHub app in order to not depend on personal setup
4+
5+
https://github.com/owncloud/android/pull/4824

changelog/unreleased/4825

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Change: Use reusable workflow for Calens
2+
3+
A new reusable workflow for calens changelog changes has been added to the current workflow in order to be used by all clients
4+
5+
https://github.com/owncloud/android/pull/4825

0 commit comments

Comments
 (0)