File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ on:
2
+ workflow_dispatch:
3
+
4
+ permissions:
5
+ contents: read
6
+ issues: read
7
+ pull-requests: read
8
+
9
+ jobs:
10
+ job1:
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os:
15
+ - ubuntu-latest
16
+ # - ubuntu-20.04
17
+ # - ubuntu-18.04
18
+ # - macos-latest
19
+ # - macos-11
20
+ # - macos-10.15
21
+ # - windows-latest
22
+ # - windows-2019
23
+
24
+ runs-on: ${{ matrix.os }}
25
+ steps:
26
+ - uses: GitHubSecurityLab/actions-permissions/monitor@v1
27
+
28
+ - uses: actions/checkout@v3
29
+
30
+ # Docker build or pull needs CA fixup?
31
+ - run: docker build --rm --tag elixir_boilerplate:latest .
32
+
33
+ - run: |
34
+ docker pull hello-world
35
+ docker run hello-world
36
+
37
+ - run: docker pull quay.io/jetstack/cert-manager-controller:v1.8.2
38
+
39
+ # test github-script CA
40
+ - name: github-script
41
+ uses: actions/github-script@v6
42
+ with:
43
+ script: |
44
+ const { data } = await github.rest.issues.listLabelsOnIssue({
45
+ issue_number: 2,
46
+ owner: context.repo.owner,
47
+ repo: context.repo.repo,
48
+ });
49
+
50
+ # test gh CA
51
+ - name: gh api
52
+ env:
53
+ GH_TOKEN: ${{ github.token }}
54
+ run: |
55
+ gh api \
56
+ -H "Accept: application/vnd.github+json" \
57
+ /repos/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}/issues/1/labels
58
+
59
+ # test curl CA
60
+ - name: curl
61
+ run: |
62
+ curl \
63
+ -H "Accept: application/vnd.github+json" \
64
+ -H "Authorization: Bearer ${{ github.token }}"\
65
+ -H "X-GitHub-Api-Version: 2022-11-28" \
66
+ https://Api.github.com/repos/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}/labels
You can’t perform that action at this time.
0 commit comments