Merge pull request #1042 from 5000164/feature/update-document-about-github-actions

Update GitHub Action documentation for Docker image stability and security
This commit is contained in:
Tal
2024-07-17 07:25:32 +03:00
committed by GitHub

View File

@ -28,13 +28,23 @@ jobs:
```
if you want to pin your action to a specific release (v2.0 for example) for stability reasons, use:
if you want to pin your action to a specific release (v0.23 for example) for stability reasons, use:
```yaml
...
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@v2.0
uses: docker://codiumai/pr-agent:0.23-github_action
...
```
For enhanced security, you can also specify the Docker image by its digest:
```yaml
...
steps:
- name: PR Agent action step
id: pragent
uses: docker://codiumai/pr-agent@sha256:14165e525678ace7d9b51cda8652c2d74abb4e1d76b57c4a6ccaeba84663cc64
...
```