django-systemd 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. django_systemd-0.1.0/.codecov.yml +3 -0
  2. django_systemd-0.1.0/.gitattributes +74 -0
  3. django_systemd-0.1.0/.github/CODEOWNERS +1 -0
  4. django_systemd-0.1.0/.github/dependabot.yml +28 -0
  5. django_systemd-0.1.0/.github/workflows/bandit.yml +64 -0
  6. django_systemd-0.1.0/.github/workflows/dependabot-automerge.yml +26 -0
  7. django_systemd-0.1.0/.github/workflows/lint.yml +75 -0
  8. django_systemd-0.1.0/.github/workflows/release.yml +172 -0
  9. django_systemd-0.1.0/.github/workflows/scorecard.yml +70 -0
  10. django_systemd-0.1.0/.github/workflows/test.yml +293 -0
  11. django_systemd-0.1.0/.github/workflows/update_coc.yml +57 -0
  12. django_systemd-0.1.0/.github/workflows/zizmor.yml +68 -0
  13. django_systemd-0.1.0/.github/zizmor.yml +6 -0
  14. django_systemd-0.1.0/.gitignore +214 -0
  15. django_systemd-0.1.0/.pre-commit-config.yaml +26 -0
  16. django_systemd-0.1.0/.readthedocs.yaml +16 -0
  17. django_systemd-0.1.0/AGENTS.md +102 -0
  18. django_systemd-0.1.0/CODE_OF_CONDUCT.md +124 -0
  19. django_systemd-0.1.0/CONTRIBUTING.md +156 -0
  20. django_systemd-0.1.0/LICENSE +21 -0
  21. django_systemd-0.1.0/PKG-INFO +74 -0
  22. django_systemd-0.1.0/README.md +32 -0
  23. django_systemd-0.1.0/SECURITY.md +14 -0
  24. django_systemd-0.1.0/doc/source/_static/style.css +37 -0
  25. django_systemd-0.1.0/doc/source/changelog.rst +24 -0
  26. django_systemd-0.1.0/doc/source/command.rst +14 -0
  27. django_systemd-0.1.0/doc/source/conf.py +151 -0
  28. django_systemd-0.1.0/doc/source/howto.rst +175 -0
  29. django_systemd-0.1.0/doc/source/index.rst +20 -0
  30. django_systemd-0.1.0/doc/source/reference/config.rst +10 -0
  31. django_systemd-0.1.0/doc/source/reference/defines.rst +46 -0
  32. django_systemd-0.1.0/doc/source/reference/index.rst +21 -0
  33. django_systemd-0.1.0/doc/source/reference/protocol.rst +10 -0
  34. django_systemd-0.1.0/doc/source/reference/signals.rst +10 -0
  35. django_systemd-0.1.0/doc/source/reference/systemd.rst +10 -0
  36. django_systemd-0.1.0/doc/source/refs.rst +6 -0
  37. django_systemd-0.1.0/doc/source/settings.rst +103 -0
  38. django_systemd-0.1.0/doc/source/tutorial.rst +7 -0
  39. django_systemd-0.1.0/justfile +267 -0
  40. django_systemd-0.1.0/pyproject.toml +234 -0
  41. django_systemd-0.1.0/src/django_systemd/__init__.py +26 -0
  42. django_systemd-0.1.0/src/django_systemd/admin.py +0 -0
  43. django_systemd-0.1.0/src/django_systemd/apps.py +6 -0
  44. django_systemd-0.1.0/src/django_systemd/config.py +197 -0
  45. django_systemd-0.1.0/src/django_systemd/defines.py +96 -0
  46. django_systemd-0.1.0/src/django_systemd/management/__init__.py +0 -0
  47. django_systemd-0.1.0/src/django_systemd/management/commands/__init__.py +0 -0
  48. django_systemd-0.1.0/src/django_systemd/management/commands/systemd.py +374 -0
  49. django_systemd-0.1.0/src/django_systemd/protocol.py +219 -0
  50. django_systemd-0.1.0/src/django_systemd/signals.py +25 -0
  51. django_systemd-0.1.0/tests/__init__.py +0 -0
  52. django_systemd-0.1.0/tests/apps/__init__.py +0 -0
  53. django_systemd-0.1.0/tests/apps/app1/__init__.py +0 -0
  54. django_systemd-0.1.0/tests/apps/app1/systemd/app@.target +5 -0
  55. django_systemd-0.1.0/tests/apps/app1/systemd/check.timer +9 -0
  56. django_systemd-0.1.0/tests/apps/app1/systemd/web.service +13 -0
  57. django_systemd-0.1.0/tests/apps/app2/__init__.py +0 -0
  58. django_systemd-0.1.0/tests/apps/app2/systemd/app@.target +6 -0
  59. django_systemd-0.1.0/tests/apps/app2/systemd/check.timer +9 -0
  60. django_systemd-0.1.0/tests/apps/app2/systemd/web.service +15 -0
  61. django_systemd-0.1.0/tests/apps/app3/__init__.py +0 -0
  62. django_systemd-0.1.0/tests/apps/app3/systemd/bad name.service +2 -0
  63. django_systemd-0.1.0/tests/apps/app3/systemd/broken.service +2 -0
  64. django_systemd-0.1.0/tests/apps/app3/systemd/cleanup.service +3 -0
  65. django_systemd-0.1.0/tests/apps/app3/systemd/cleanup.timer +5 -0
  66. django_systemd-0.1.0/tests/apps/app3/systemd/my.app.timer +5 -0
  67. django_systemd-0.1.0/tests/apps/app3/systemd/runtime.service +2 -0
  68. django_systemd-0.1.0/tests/apps/app3/systemd/sub/web.service +2 -0
  69. django_systemd-0.1.0/tests/apps/app3/systemd/web.socket +5 -0
  70. django_systemd-0.1.0/tests/conftest.py +13 -0
  71. django_systemd-0.1.0/tests/settings.py +137 -0
  72. django_systemd-0.1.0/tests/test_basics.py +420 -0
  73. django_systemd-0.1.0/tests/test_command.py +734 -0
  74. django_systemd-0.1.0/tests/test_protocol.py +273 -0
  75. django_systemd-0.1.0/tests/urls.py +1 -0
  76. django_systemd-0.1.0/uv.lock +2649 -0
@@ -0,0 +1,3 @@
1
+ coverage:
2
+ fixes:
3
+ - "__init__.py::django_systemd/__init__.py"
@@ -0,0 +1,74 @@
1
+ # Set the default behavior, in case people don't have core.autocrlf set.
2
+ * text=auto
3
+
4
+ # Source files
5
+ *.pxd text diff=python
6
+ *.py text diff=python
7
+ *.py3 text diff=python
8
+ *.pyw text diff=python
9
+ *.pyx text diff=python
10
+ *.pyz text diff=python
11
+ *.pyi text diff=python
12
+ *.rst text
13
+ *.md text diff=markdown
14
+ justfile text
15
+ *.toml text
16
+ LICENSE text
17
+ *.yaml text
18
+ *.yml text
19
+ *.po text
20
+ *.tmpl text
21
+ *.json text
22
+ *.xml text
23
+
24
+ # powershell
25
+ *.ps1 text eol=crlf
26
+ *.ps1x text eol=crlf
27
+ *.psm1 text eol=crlf
28
+ *.psd1 text eol=crlf
29
+ *.ps1xml text eol=crlf
30
+ *.pssc text eol=crlf
31
+ *.psrc text eol=crlf
32
+ *.cdxml text eol=crlf
33
+
34
+ # Scripts
35
+ *.bash text eol=lf
36
+ *.fish text eol=lf
37
+ *.ksh text eol=lf
38
+ *.sh text eol=lf
39
+ *.zsh text eol=lf
40
+ *.bat text eol=crlf
41
+ *.cmd text eol=crlf
42
+
43
+ # Archives
44
+ *.7z binary
45
+ *.bz2 binary
46
+ *.gz binary
47
+ *.rar binary
48
+ *.tar binary
49
+ *.tgz binary
50
+ *.zip binary
51
+ *.zst binary
52
+
53
+ # Binary files
54
+ *.db binary
55
+ *.pyc binary export-ignore
56
+ *.pyo binary export-ignore
57
+ *.pyd binary
58
+ *.png binary
59
+ *.jpg binary
60
+ *.pdf binary
61
+ *.svg binary
62
+ *.gif binary
63
+ *.mo binary
64
+
65
+ # Documents
66
+ *.bibtex text diff=bibtex
67
+ *.tex text diff=tex
68
+ *.csv text eol=crlf
69
+ *.txt text
70
+ *.sql text
71
+ *.patch -text
72
+
73
+ .gitattributes export-ignore
74
+ .gitignore export-ignore
@@ -0,0 +1 @@
1
+ * @bckohan
@@ -0,0 +1,28 @@
1
+ version: 2
2
+ updates:
3
+ # GitHub Actions
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "monthly"
8
+ cooldown:
9
+ default-days: 14
10
+ groups:
11
+ gha-updates:
12
+ patterns:
13
+ - "*"
14
+
15
+ # Python dependencies managed via uv (pyproject.toml)
16
+ - package-ecosystem: "uv"
17
+ directory: "/"
18
+ schedule:
19
+ interval: "monthly"
20
+ groups:
21
+ uv-runtime:
22
+ dependency-type: "production"
23
+ patterns:
24
+ - "*"
25
+ uv-dev:
26
+ dependency-type: "development"
27
+ patterns:
28
+ - "*"
@@ -0,0 +1,64 @@
1
+ name: Bandit
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ paths:
8
+ - "src/**"
9
+ - "pyproject.toml"
10
+ - "justfile"
11
+ - ".github/workflows/bandit.yml"
12
+ workflow_dispatch:
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ concurrency:
18
+ group: bandit-${{ github.event.pull_request.number || github.ref }}
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ bandit-analysis:
23
+ name: Run Bandit
24
+ runs-on: ubuntu-latest
25
+ permissions:
26
+ contents: read
27
+ security-events: write # allow uploading code scanning results
28
+
29
+ steps:
30
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
31
+ with:
32
+ persist-credentials: false
33
+ - name: Set up Python
34
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
35
+ id: sp
36
+ with:
37
+ python-version: "3.x"
38
+ allow-prereleases: true
39
+ - name: Install uv
40
+ uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4
41
+ with:
42
+ enable-cache: false
43
+ - name: Install Just
44
+ uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3
45
+ with:
46
+ just-version: "1.58.0"
47
+
48
+ - name: Run Bandit
49
+ run: |
50
+ just bandit
51
+
52
+ - name: Upload analysis results
53
+ if: ${{ always() }}
54
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
55
+ with:
56
+ name: bandit-results
57
+ path: bandit.sarif
58
+ retention-days: 7
59
+
60
+ - name: Upload to code-scanning
61
+ if: ${{ always() }}
62
+ uses: github/codeql-action/upload-sarif@b96794f015dfd88f77b49b1c93e0fa7110f94c63
63
+ with:
64
+ sarif_file: bandit.sarif
@@ -0,0 +1,26 @@
1
+ name: Dependabot Auto-Merge
2
+
3
+ concurrency:
4
+ group: dependabot-automerge-${{ github.event.pull_request.number }}
5
+ cancel-in-progress: true
6
+
7
+ on:
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
+ permissions: {}
13
+
14
+ jobs:
15
+ auto-merge:
16
+ if: github.event.pull_request.user.login == 'dependabot[bot]'
17
+ runs-on: ubuntu-latest
18
+ permissions:
19
+ contents: write # needed to merge PRs
20
+ pull-requests: write # needed to merge PRs
21
+ steps:
22
+ - name: Enable auto-merge
23
+ env:
24
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ PR_URL: ${{ github.event.pull_request.html_url }}
26
+ run: gh pr merge --auto --squash "$PR_URL"
@@ -0,0 +1,75 @@
1
+ name: Lint
2
+
3
+ permissions:
4
+ contents: read
5
+
6
+ concurrency:
7
+ group: lint-${{ github.event.pull_request.number || github.ref }}
8
+ cancel-in-progress: true
9
+
10
+ on:
11
+ push:
12
+ tags-ignore:
13
+ - "*"
14
+ branches: ["main"]
15
+ pull_request:
16
+ branches: ["main"]
17
+ workflow_call:
18
+ workflow_dispatch:
19
+ inputs:
20
+ debug:
21
+ description: "Open ssh debug session."
22
+ required: true
23
+ default: false
24
+ type: boolean
25
+
26
+ jobs:
27
+ lint:
28
+ runs-on: ubuntu-latest
29
+ strategy:
30
+ matrix:
31
+ # run static analysis on bleeding and trailing edges
32
+ python-version: ["3.11", "3.15"]
33
+ django-version:
34
+ - "dj52" # LTS April 2028
35
+ - "dj61" # December 2027
36
+ exclude:
37
+ - python-version: "3.11"
38
+ django-version: "dj61"
39
+ - python-version: "3.15"
40
+ django-version: "dj52"
41
+
42
+ env:
43
+ TEST_PYTHON_VERSION: ${{ matrix.python-version }}
44
+ TEST_DJANGO_VERSION: ${{ matrix.django-version }}
45
+ steps:
46
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
47
+ with:
48
+ persist-credentials: false
49
+ - name: Set up Python ${{ matrix.python-version }}
50
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
51
+ id: sp
52
+ with:
53
+ python-version: ${{ matrix.python-version }}
54
+ allow-prereleases: true
55
+ - name: Install uv
56
+ uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4
57
+ with:
58
+ enable-cache: false
59
+ - name: Install Just
60
+ uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3
61
+ with:
62
+ just-version: "1.58.0"
63
+ - name: Install Emacs
64
+ if: ${{ github.event.inputs.debug == 'true' }}
65
+ run: |
66
+ sudo apt install emacs
67
+ - name: Setup tmate session
68
+ if: ${{ github.event.inputs.debug == 'true' }}
69
+ uses: mxschmitt/action-tmate@35b54afac29c97fb54faba5b513f8fbd1882f113
70
+ timeout-minutes: 60
71
+ - name: Run Static Analysis
72
+ env:
73
+ PYTHON_PATH: ${{ steps.sp.outputs.python-path }}
74
+ run: |
75
+ just check -p "$PYTHON_PATH" --group "$TEST_DJANGO_VERSION"
@@ -0,0 +1,172 @@
1
+ name: Publish Release
2
+
3
+ permissions:
4
+ contents: read
5
+
6
+ concurrency:
7
+ # stop previous release runs if tag is recreated
8
+ group: release-${{ github.ref }}
9
+ cancel-in-progress: true
10
+
11
+ on:
12
+ push:
13
+ tags:
14
+ - "v[0-9]*.[0-9]*.[0-9]*" # only publish on version tags (e.g. v1.0.0)
15
+
16
+ jobs:
17
+ lint:
18
+ permissions:
19
+ contents: read
20
+ uses: $/.github/workflows/lint.yml
21
+
22
+ test:
23
+ permissions:
24
+ contents: read
25
+ id-token: write # to allow codecov oidc upload
26
+ uses: $/.github/workflows/test.yml
27
+
28
+ build:
29
+ name: Build Package
30
+ runs-on: ubuntu-latest
31
+ permissions:
32
+ contents: read
33
+ outputs:
34
+ PACKAGE_NAME: ${{ steps.set-package.outputs.package_name }}
35
+ RELEASE_VERSION: ${{ steps.set-package.outputs.release_version }}
36
+ steps:
37
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
38
+ with:
39
+ persist-credentials: false
40
+ - name: Set up Python
41
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
42
+ with:
43
+ python-version: "3.14" # for tomllib
44
+ - name: Install uv
45
+ uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4
46
+ with:
47
+ enable-cache: false
48
+ restore-cache: false
49
+ save-cache: false
50
+ - name: Setup Just
51
+ uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3
52
+ with:
53
+ just-version: "1.58.0"
54
+ - name: Verify Tag
55
+ run: |
56
+ TAG_NAME=${GITHUB_REF#refs/tags/}
57
+ echo "Verifying tag $TAG_NAME..."
58
+ # if a tag was deleted and recreated we may have the old one cached
59
+ # be sure that we're publishing the current tag!
60
+ git fetch --force origin refs/tags/$TAG_NAME:refs/tags/$TAG_NAME
61
+
62
+ # verify signature
63
+ curl -sL "https://github.com/${GITHUB_ACTOR}.gpg" | gpg --import
64
+ git tag -v "$TAG_NAME"
65
+
66
+ # verify version
67
+ RELEASE_VERSION=$(just validate_version $TAG_NAME)
68
+
69
+ # export the release version
70
+ echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
71
+ - name: Build the binary wheel and a source tarball
72
+ run: just build
73
+ - name: Store the distribution packages
74
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
75
+ with:
76
+ name: python-package-distributions
77
+ path: dist/
78
+ - name: Set Package Name
79
+ id: set-package
80
+ run: |
81
+ PACKAGE_NAME=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['name'])")
82
+ echo "package_name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT
83
+
84
+ publish-to-testpypi:
85
+ name: Publish to TestPyPI
86
+ needs:
87
+ - build
88
+ runs-on: ubuntu-latest
89
+ environment:
90
+ name: testpypi
91
+ url: https://test.pypi.org/project/${{ needs.build.outputs.PACKAGE_NAME }}
92
+ permissions:
93
+ id-token: write # IMPORTANT: mandatory for trusted publishing
94
+ steps:
95
+ - name: Download all the dists
96
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
97
+ with:
98
+ name: python-package-distributions
99
+ path: dist/
100
+ - name: Publish distribution to TestPyPI
101
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
102
+ with:
103
+ repository-url: https://test.pypi.org/legacy/
104
+ skip-existing: true
105
+
106
+ publish-to-pypi:
107
+ name: Publish to PyPI
108
+ needs:
109
+ - lint
110
+ - test
111
+ - build
112
+ - publish-to-testpypi
113
+ runs-on: ubuntu-latest
114
+ environment:
115
+ name: pypi
116
+ url: https://pypi.org/p/${{ needs.build.outputs.PACKAGE_NAME }}
117
+ permissions:
118
+ id-token: write # IMPORTANT: mandatory for trusted publishing
119
+ steps:
120
+ - name: Download all the dists
121
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
122
+ with:
123
+ name: python-package-distributions
124
+ path: dist/
125
+ - name: Publish distribution to PyPI
126
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
127
+
128
+ github-release:
129
+ name: Publish GitHub Release
130
+ runs-on: ubuntu-latest
131
+ needs:
132
+ - lint
133
+ - test
134
+ - build
135
+ permissions:
136
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
137
+ id-token: write # IMPORTANT: mandatory for sigstore
138
+
139
+ steps:
140
+ - name: Download all the dists
141
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
142
+ with:
143
+ name: python-package-distributions
144
+ path: dist/
145
+ - name: Sign the dists with Sigstore
146
+ uses: sigstore/gh-action-sigstore-python@790bc6befb9d733738f18d8f895854b453640ec9
147
+ with:
148
+ inputs: >-
149
+ ./dist/*.tar.gz
150
+ ./dist/*.whl
151
+ - name: Create GitHub Release
152
+ env:
153
+ GITHUB_TOKEN: ${{ github.token }}
154
+ GITHUB_REF_NAME: ${{ github.ref_name }}
155
+ GITHUB_REPOSITORY: ${{ github.repository }}
156
+ run: >-
157
+ gh release create
158
+ "$GITHUB_REF_NAME"
159
+ --repo "$GITHUB_REPOSITORY"
160
+ --generate-notes
161
+ - name: Upload artifact signatures to GitHub Release
162
+ env:
163
+ GITHUB_TOKEN: ${{ github.token }}
164
+ GITHUB_REF_NAME: ${{ github.ref_name }}
165
+ GITHUB_REPOSITORY: ${{ github.repository }}
166
+ # Upload to GitHub Release using the `gh` CLI.
167
+ # `dist/` contains the built packages, and the
168
+ # sigstore-produced signatures and certificates.
169
+ run: >-
170
+ gh release upload
171
+ "$GITHUB_REF_NAME" dist/**
172
+ --repo "$GITHUB_REPOSITORY"
@@ -0,0 +1,70 @@
1
+ name: OpenSSF Scorecard
2
+ on:
3
+ # For Branch-Protection check. Only the default branch is supported. See
4
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5
+ branch_protection_rule:
6
+ # To guarantee Maintained check is occasionally updated. See
7
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8
+ push:
9
+ branches: [main]
10
+ workflow_dispatch:
11
+
12
+ concurrency:
13
+ group: scorecard-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ analysis:
21
+ name: Scorecard analysis
22
+ runs-on: ubuntu-latest
23
+ environment:
24
+ name: scorecard
25
+ deployment: false # Prevents creating a GitHub deployment object
26
+ permissions:
27
+ security-events: write # allow uploading code scanning results
28
+ id-token: write # to allow OIDC authentication for publishing results to OpenSSF REST API
29
+
30
+ steps:
31
+ - name: "Checkout code"
32
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
33
+ with:
34
+ persist-credentials: false
35
+
36
+ - name: "Run analysis"
37
+ uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc
38
+ with:
39
+ results_file: results.sarif
40
+ results_format: sarif
41
+ # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
42
+ # - you want to enable the Branch-Protection check on a *public* repository, or
43
+ # - you are installing Scorecard on a *private* repository
44
+ # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
45
+ repo_token: ${{ secrets.SCORECARD_TOKEN }}
46
+
47
+ # Public repositories:
48
+ # - Publish results to OpenSSF REST API for easy access by consumers
49
+ # - Allows the repository to include the Scorecard badge.
50
+ # - See https://github.com/ossf/scorecard-action#publishing-results.
51
+ # For private repositories:
52
+ # - `publish_results` will always be set to `false`, regardless
53
+ # of the value entered here.
54
+ publish_results: true
55
+
56
+ # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
57
+ # format to the repository Actions tab.
58
+ - name: "Upload artifact"
59
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
60
+ with:
61
+ name: SARIF file
62
+ path: results.sarif
63
+ retention-days: 5
64
+
65
+ # Upload the results to GitHub's code scanning dashboard (optional).
66
+ # Commenting out will disable upload of results to your repo's Code Scanning dashboard
67
+ - name: "Upload to code-scanning"
68
+ uses: github/codeql-action/upload-sarif@b96794f015dfd88f77b49b1c93e0fa7110f94c63
69
+ with:
70
+ sarif_file: results.sarif