Skip to content

Commit a1468de

Browse files
committed
.github: fixup 12
1 parent e5a0ee2 commit a1468de

File tree

3 files changed

+19
-56
lines changed

3 files changed

+19
-56
lines changed

.github/workflows/AsteriskPRChanged.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ env:
4444
jobs:
4545
PRChanged2:
4646
name: "run-check"
47+
permissions:
48+
actions: read
49+
checks: read
50+
contents: read
51+
issues: read
52+
pull-requests: read
53+
statuses: read
4754
uses: ./.github/workflows/AsteriskPRChanged2.yml
4855

4956
Cleanup:
@@ -55,12 +62,6 @@ jobs:
5562
run: |
5663
# Wait then get testsuite PR
5764
58-
wget -qO asterisk-ci-actions.tar.gz \
59-
https://github.com/${ACTIONS_OWNER}/${ACTIONS_REPO}/archive/refs/heads/${ACTIONS_BRANCH}.tar.gz
60-
tar -xf asterisk-ci-actions.tar.gz --transform="s/^${ACTIONS_REPO}-${ACTIONS_BRANCH}/asterisk-ci-actions/g"
61-
ls -al
62-
63-
echo "SOME_VARIABLE: ${SOMEVAR}"
64-
65-
gh --repo ${REPO} pr edit ${PR_NUMBER} --add-label bug
65+
echo "${GITHUB_TOKEN}" | md5sum
66+
echo "${GH_TOKEN}" | md5sum
6667

.github/workflows/AsteriskPRChanged2.yml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@ on:
99
required: false
1010
default: '{ "owner": "asterisk", "repo": "asterisk-ci-actions", "branch": "main" }'
1111

12-
permissions:
13-
actions: read
14-
# attestations: read|write|none
15-
checks: read
16-
contents: read
17-
# deployments: read|write|none
18-
# id-token: write|none
19-
issues: read
20-
# discussions: read|write|none
21-
# packages: read|write|none
22-
# pages: read|write|none
23-
pull-requests: read
24-
# repository-projects: read|write|none
25-
# security-events: read|write|none
26-
statuses: read
27-
2812
env:
2913
REPO: ${{ github.repository }}
3014
REPO_DIR: ${{ github.workspace }}/${{ github.event.repository.name }}
@@ -46,12 +30,9 @@ jobs:
4630
steps:
4731
- id: setup
4832
run: |
49-
mkdir cacheit
50-
ls -al > cacheit/dirlist.txt
51-
mkdir output
52-
ls -al > output/dirlist2.txt
53-
echo "XXX${{ secrets.SOME_SECRET }}XXX" > output/test.out
54-
echo "VVV${{ vars.SOME_VARIABLE }}VVV" >> output/test.out
33+
echo "${GITHUB_TOKEN}" | md5sum
34+
echo "${GH_TOKEN}" | md5sum
35+
5536
5637
# - id: cache-build-output
5738
# name: CacheBuildProducts
@@ -60,13 +41,4 @@ jobs:
6041
# path: cacheit
6142
# key: Cleanup2-${{ env.PR_NUMBER }}
6243

63-
- name: Save Output
64-
if: always()
65-
id: save-output
66-
uses: actions/upload-artifact@v4
67-
with:
68-
name: Cleanup2-${{ env.PR_NUMBER }}
69-
if-no-files-found: ignore
70-
path: output
71-
7244

.github/workflows/OnPRChanged.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ env:
3434
GH_TOKEN: ${{ github.token }}
3535

3636
jobs:
37-
PRChanged:
38-
name: "run-check"
39-
concurrency:
40-
group: check-${{ github.base_ref }}-${{ github.ref_name }}
41-
cancel-in-progress: true
42-
uses: ./.github/workflows/AsteriskPRChanged.yml
43-
4437
Cleanup0:
4538
needs: [ PRChanged ]
4639
if: ${{ always() }}
@@ -49,15 +42,12 @@ jobs:
4942
- id: setup
5043
run: |
5144
mkdir output
52-
echo "SSS${{ secrets.SOME_SECRET }}SSS" > output/xxx.txt
45+
echo "${GITHUB_TOKEN}" | md5sum
5346
54-
- name: Save Output
55-
if: always()
56-
id: save-output
57-
uses: actions/upload-artifact@v4
58-
with:
59-
name: Cleanup0-${{ env.PR_NUMBER }}
60-
if-no-files-found: ignore
61-
path: output
47+
PRChanged:
48+
name: "run-check"
49+
concurrency:
50+
group: check-${{ github.base_ref }}-${{ github.ref_name }}
51+
cancel-in-progress: true
52+
uses: ./.github/workflows/AsteriskPRChanged.yml
6253

63-

0 commit comments

Comments
 (0)