Skip to content

Commit 33c9abb

Browse files
committed
fix(ci): add write permissions for release creation
1 parent 34d710e commit 33c9abb

3 files changed

Lines changed: 22 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches: [main]
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: write
14+
1215
jobs:
1316
build:
1417
runs-on: ubuntu-latest

manifest.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
},
1919
"browser_specific_settings": {
2020
"gecko": {
21-
"id": "{cad379db-edfe-4c5e-b936-27a19156b5dc}"
21+
"id": "{cad379db-edfe-4c5e-b936-27a19156b5dc}",
22+
"strict_min_version": "142.0",
23+
"data_collection_permissions": {
24+
"required": [
25+
"none"
26+
]
27+
}
2228
}
2329
},
2430
"action": {

popup.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,12 @@ document.addEventListener('DOMContentLoaded', () => {
600600
tags.forEach((tag, index) => {
601601
const badge = document.createElement('div');
602602
badge.className = 'tag-badge';
603-
badge.innerHTML = `
604-
${tag}
605-
<span class="tag-remove" data-index="${index}">×</span>
606-
`;
603+
badge.textContent = tag;
604+
const removeSpan = document.createElement('span');
605+
removeSpan.className = 'tag-remove';
606+
removeSpan.dataset.index = index;
607+
removeSpan.textContent = '×';
608+
badge.appendChild(removeSpan);
607609
elements.tagsContainer.insertBefore(badge, elements.newTagInput);
608610
});
609611
}
@@ -672,10 +674,12 @@ document.addEventListener('DOMContentLoaded', () => {
672674
config.topics.forEach((topic, index) => {
673675
const badge = document.createElement('div');
674676
badge.className = 'topic-badge';
675-
badge.innerHTML = `
676-
${topic}
677-
<span class="topic-remove" data-index="${index}">×</span>
678-
`;
677+
badge.textContent = topic;
678+
const removeSpan = document.createElement('span');
679+
removeSpan.className = 'topic-remove';
680+
removeSpan.dataset.index = index;
681+
removeSpan.textContent = '×';
682+
badge.appendChild(removeSpan);
679683
elements.topicsContainer.insertBefore(badge, elements.newTopicInput);
680684
});
681685
}

0 commit comments

Comments
 (0)