| name | github-actions-1-security-best-practices |
| description | Sub-skill of github-actions: 1. Security Best Practices (+3). |
| version | 1.0.0 |
| category | operations |
| type | reference |
| scripts_exempt | true |
1. Security Best Practices (+3)
1. Security Best Practices
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
permissions:
contents: read
packages: write
env:
API_KEY: ${{ secrets.API_KEY }}
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
2. Performance Optimization
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}
strategy:
fail-fast: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
3. Maintainability
jobs:
test:
uses: ./.github/workflows/reusable-test.yml
- uses: ./.github/actions/setup-project
env:
PYTHON_VERSION: '3.11'
NODE_VERSION: '20'
4. Error Handling
- name: Optional step
continue-on-error: true
run: optional-command
jobs:
build:
timeout-minutes: 30
- name: Cleanup
if: always()
run: cleanup-command